Skip to content

Commit

Permalink
feat(Traefik Hub): 🍻 add E2E tests on RBACs change
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Jul 30, 2024
1 parent ed80c4c commit 73a9c2d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 🧑‍🔬 E2E tests
on:
workflow_call:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
PLATFORM_URL: ${{ secrets.PLATFORM_URL }}
ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }}
EXTERNAL_TOKEN: ${{ secrets.EXTERNAL_TOKEN }}
DOCKER_NON_INTERACTIVE: true
LOG_LEVEL: info
jobs:
run-walkthrough:
runs-on: ubuntu-latest
steps:
- name: checkout traefik-helm-chart
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/traefik-helm-chart
- name: checkout
uses: actions/checkout@v4
with:
repository: traefik/hub
path: ${{ github.workspace }}/hub
- name: set up Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ github.workspace }}/hub/tests/go.mod
cache-dependency-path: ${{ github.workspace }}/hub/tests/go.sum
- name: update tests
run: |
sed -i -r "s|\"traefik/traefik\"|\"${{ github.workspace }}/traefik-helm-chart/traefik/\"|g" ${{ github.workspace }}/hub/tests/*/*.go
- name: run tests
working-directory: ${{ github.workspace }}/hub/tests
run: make test-walkthrough

0 comments on commit 73a9c2d

Please sign in to comment.