diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index de93343..cc04b20 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 }} @@ -25,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 @@ -38,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 @@ -51,7 +65,29 @@ 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 - + 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: 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