Skip to content

Commit

Permalink
Parallel run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 21, 2024
1 parent 5b5bb88 commit 2fee2ed
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/tests-and-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
file: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}

e2e-tests:
e2e-basic:
runs-on: ubuntu-latest
needs: unit-tests

steps:
- uses: actions/checkout@v4
Expand All @@ -51,10 +50,26 @@ jobs:
- name: E2E basic test
run: go run mage.go -v TestE2EBasic

e2e-nat:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: E2E NAT test
run: go run mage.go -v TestE2ENAT

verify-build:
needs: [unit-tests, e2e-tests]
needs: [unit-tests, e2e-basic, e2e-nat]
uses: ./.github/workflows/build-packages.yml
secrets: inherit

0 comments on commit 2fee2ed

Please sign in to comment.