From 5e4bd2a9503744bb1f18f5507f15a88db7515431 Mon Sep 17 00:00:00 2001 From: Timur Zununbekov Date: Wed, 21 Feb 2024 13:49:00 +0600 Subject: [PATCH] Speed up workflows execution --- .github/workflows/build-packages.yml | 3 ++- .github/workflows/tests-and-linters.yml | 21 ++++++++++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 3c1818a247..a2628d07ac 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -53,6 +53,7 @@ jobs: cat <> 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; @@ -68,7 +69,7 @@ jobs: needs: [setup-env] strategy: - max-parallel: 4 + max-parallel: 6 matrix: platform: - PackageLinuxRaspberryImage diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index dc006ea6fe..b7d0a13316 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -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 @@ -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