Skip to content

Commit

Permalink
Speed up workflows execution
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 21, 2024
1 parent 5b5bb88 commit 5e4bd2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
cat <<EOT >> env.sh
export RELEASE_BUILD=$RELEASE_BUILD;
export RC_BUILD=$RC_BUILD;
export PR_BUILD=$PR_BUILD;
export SNAPSHOT_BUILD=$SNAPSHOT_BUILD;
export BUILD_NUMBER=$BUILD_NUMBER;
export BUILD_VERSION=$BUILD_VERSION;
Expand All @@ -68,7 +69,7 @@ jobs:
needs: [setup-env]

strategy:
max-parallel: 4
max-parallel: 6
matrix:
platform:
- PackageLinuxRaspberryImage
Expand Down
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 5e4bd2a

Please sign in to comment.