-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8efd039
commit dae67f1
Showing
3 changed files
with
77 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Intgeration tests for solutions | ||
|
||
on: | ||
schedule: | ||
- cron: "0 2 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
go-tests: | ||
name: Run Go Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 0 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
network: ["dev", "qa", "test", "main"] | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
- uses: autero1/[email protected] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
with: | ||
terraform-version: 1.9.6 | ||
- name: install wg and yggdrasil and add peers | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wireguard | ||
sudo apt-get install dirmngr | ||
sudo apt-get install curl | ||
gpg --fetch-keys https://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/key.txt | ||
gpg --export 569130E8CA20FBC4CB3FDE555898470A764B32C9 | sudo apt-key add - | ||
echo 'deb http://neilalexander.s3.dualstack.eu-west-2.amazonaws.com/deb/ debian yggdrasil' | sudo tee /etc/apt/sources.list.d/yggdrasil.list | ||
sudo apt-get update | ||
sudo apt-get install yggdrasil | ||
sudo systemctl enable yggdrasil | ||
PEERS=$(curl https://raw.githubusercontent.com/AhmedHanafy725/yggdrasil-config/main/config.json | jq '.yggdrasil.peers[]' -r | sed 's/\//\\\//g' | sed -z 's/\n/\\n/g') | ||
sudo sed -i -- 's/Peers\: \[\]/Peers: [\n'"$PEERS"']/g' /etc/yggdrasil/yggdrasil.conf | ||
sudo systemctl restart yggdrasil | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Build | ||
run: | | ||
go mod tidy | ||
mkdir -p ~/.terraform.d/plugins/threefoldtechdev.com/providers/grid/0.2/linux_amd64/ | ||
go build -o terraform-provider-grid | ||
mv terraform-provider-grid ~/.terraform.d/plugins/threefoldtechdev.com/providers/grid/0.2/linux_amd64/ | ||
- name: Test kubernetes module | ||
env: | ||
MNEMONIC: ${{ secrets.MNEMONICS }} | ||
MNEMONICS: ${{ secrets.MNEMONICS }} | ||
NETWORK: ${{ matrix.network }} | ||
working-directory: integrationtests | ||
run: | | ||
go test -v ./... --tags=integration -run TestModuleK8s | ||
- name: Test nomad module | ||
env: | ||
MNEMONIC: ${{ secrets.MNEMONICS }} | ||
NETWORK: ${{ matrix.network }} | ||
working-directory: integrationtests | ||
run: | | ||
go test -v ./... --tags=integration -run TestPeertube | ||
go test -v ./... --tags=integration -run TestPresearch | ||
go test -v ./... --tags=integration -run TestTaiga | ||
go test -v ./... --tags=integration -run TestMattermost |