Skip to content

Commit

Permalink
split tests in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Aug 11, 2024
1 parent 35f7991 commit de0bd02
Showing 1 changed file with 16 additions and 81 deletions.
97 changes: 16 additions & 81 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,23 @@ jobs:
timeout-minutes: 0
strategy:
fail-fast: false
max-parallel: 1
matrix:
network: ["dev", "qa", "test", "main"]
test: ["go test -v ./... --tags=integration -run TestVM",
"go test -v ./... --tags=integration -run TestK8s",
"go test -v ./... --tags=integration -run TestModuleK8s",
"go test -v ./... --tags=integration -run TestGatewayDeployments",
"go test -v ./... --tags=integration -run TestGatewayPrivate",
"go test -v ./... --tags=integration -run TestWireguard",
"go test -v ./... --tags=integration -run TestZdbs",
"go test -v ./... --tags=integration -run TestQSFS",
"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",
"go test -v ./... --tags=integration -run TestNomad"]

steps:
- uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -55,84 +70,4 @@ jobs:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestVM

- name: Test kubernetes
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: |
go test -v ./... --tags=integration -run TestK8s
go test -v ./... --tags=integration -run TestModuleK8s
- name: Test Gateways
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestGatewayDeployments

- name: Test private gateways
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestGatewayPrivate

- name: Test wireguard
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestWireguard

- name: Test ZDBs
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestZdbs

- name: Test QSFS
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestQSFS

- name: Test peertube
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestPeertube

- name: Test presearch
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestPresearch

- name: Test taiga
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestTaiga

- name: Test mattermost
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestMattermost

- name: Test nomad
env:
MNEMONIC: ${{ secrets.MNEMONICS }}
NETWORK: ${{ matrix.network }}
working-directory: integrationtests
run: go test -v ./... --tags=integration -run TestNomad

run: ${{ matrix.test }}

0 comments on commit de0bd02

Please sign in to comment.