Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tests are not running #265

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 39 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Loading