Intgeration tests for solutions #103
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
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/action-terraform@v3.0.1 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
with: | |
terraform-version: 1.9.6 | |
- name: install wg and mycelium and add peers | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y wireguard | |
sudo apt-get install dirmngr | |
sudo apt-get install curl | |
wget https://github.com/threefoldtech/mycelium/releases/download/v0.5.7/mycelium-x86_64-unknown-linux-musl.tar.gz | |
tar xzf mycelium-x86_64-unknown-linux-musl.tar.gz | |
sudo ./mycelium --peers tcp://188.40.132.242:9651 quic://185.69.166.8:9651 --tun-name utun9 -k /tmp/mycelium_priv_key.bin & | |
- uses: actions/checkout@v4.1.1 | |
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 solutions | |
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 |