Skip to content

Commit

Permalink
Adapt e2e GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Apr 20, 2023
1 parent 315744b commit 1ef9ed5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ install-kind:
install-playwright:
npm --workspace $(example_dir) run pree2e

.PHONY: test
test: run-playwright
.PHONY: e2e
e2e: run-playwright

.PHONY: run-playwright
run-playwright: setup-serviceaccount $(example_dir)/.env
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
example:
- fetch
- kubernetes-client-example-fetch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -52,14 +52,14 @@ jobs:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: make -f .github/workflows/e2e.mk -e example_dir=examples/${{ matrix.example }} -j 2 preinstall
run: make -f .github/workflows/e2e.mk -e example_dir=packages/${{ matrix.example }} -j 2 preinstall
- name: Setup test tools
run: make -f .github/workflows/e2e.mk -e example_dir=examples/${{ matrix.example }} -j 2 install
run: make -f .github/workflows/e2e.mk -e example_dir=packages/${{ matrix.example }} -j 2 install
- name: Run tests
run: make -f .github/workflows/e2e.mk -e example_dir=examples/${{ matrix.example }} test
run: make -f .github/workflows/e2e.mk -e example_dir=packages/${{ matrix.example }} e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: examples/fetch/playwright-report/
path: packages/${{ matrix.example }}/playwright-report/
retention-days: 30

0 comments on commit 1ef9ed5

Please sign in to comment.