Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Jul 26, 2024
1 parent 395cc3f commit e47edb0
Showing 1 changed file with 39 additions and 3 deletions.
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

0 comments on commit e47edb0

Please sign in to comment.