-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Traefik Hub): 🍻 add E2E tests on RBACs change
- Loading branch information
1 parent
ed80c4c
commit 73a9c2d
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |