From 34ed61bd4ef8d12d10e971885541a16990d49caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BUISSON?= Date: Thu, 25 Jul 2024 10:43:45 +0200 Subject: [PATCH 1/2] fix: tests are not running --- .github/workflows/test.yaml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index de93343..30632c9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -3,9 +3,13 @@ on: workflow_dispatch: pull_request: branches: - - main + - master paths: - - '**.yaml' + - '.github/workflows/test.yaml' + - 'src/manifests/**.yaml' + - 'api-management/**.yaml' + - 'api-gateway/**.yaml' + - 'tests/**.go' env: API_TOKEN: ${{ secrets.API_TOKEN }} @@ -54,4 +58,16 @@ jobs: - name: run tests working-directory: tests run: make test-apim - + testhelpers: + runs-on: buildjet-2vcpu-ubuntu-2204 + steps: + - name: checkout + uses: actions/checkout@v4 + - name: set up Go + uses: actions/setup-go@v5 + with: + go-version-file: tests/go.mod + cache-dependency-path: tests/go.sum + - name: run tests + working-directory: tests + run: make test-testhelpers From 6dd344c310733475cc1e026a569758eeeb67fa14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BUISSON?= Date: Thu, 25 Jul 2024 11:51:21 +0200 Subject: [PATCH 2/2] fix: token --- .github/workflows/test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 30632c9..cc04b20 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,6 +29,11 @@ jobs: with: go-version-file: tests/go.mod cache-dependency-path: tests/go.sum + - name: docker hub login + uses: docker/login-action@v3 + with: + username: traefiker + password: ${{ secrets.TRAEFIKER_DOCKERHUB_TOKEN }} - name: run tests working-directory: tests run: make test-walkthrough @@ -42,6 +47,11 @@ jobs: with: go-version-file: tests/go.mod cache-dependency-path: tests/go.sum + - name: docker hub login + uses: docker/login-action@v3 + with: + username: traefiker + password: ${{ secrets.TRAEFIKER_DOCKERHUB_TOKEN }} - name: run tests working-directory: tests run: make test-apigw @@ -55,6 +65,11 @@ jobs: with: go-version-file: tests/go.mod cache-dependency-path: tests/go.sum + - name: docker hub login + uses: docker/login-action@v3 + with: + username: traefiker + password: ${{ secrets.TRAEFIKER_DOCKERHUB_TOKEN }} - name: run tests working-directory: tests run: make test-apim @@ -68,6 +83,11 @@ jobs: with: go-version-file: tests/go.mod cache-dependency-path: tests/go.sum + - name: docker hub login + uses: docker/login-action@v3 + with: + username: traefiker + password: ${{ secrets.TRAEFIKER_DOCKERHUB_TOKEN }} - name: run tests working-directory: tests run: make test-testhelpers