Skip to content

Commit

Permalink
ci: move e2e to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Jun 24, 2024
1 parent da7a935 commit 0e2275f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,25 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm run test

e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
VITE_PAGE_NAME: ${{ vars.VITE_PAGE_NAME }}
VITE_API_URL: ${{ vars.VITE_API_URL }}
VITE_CARD_IMAGE_URL: ${{ vars.VITE_CARD_IMAGE_URL }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
- run: npm ci
- run: npm run prepare:e2e
- run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
#
29 changes: 0 additions & 29 deletions .github/workflows/playwright.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"lint": "biome lint",
"lint:fix": "biome lint --write",
"prepare": "lefthook install",
"prepare:e2e": " playwright install --with-deps",
"preview": "vite preview",
"test:coverage": "vitest run --coverage",
"test": "vitest run",
Expand Down

0 comments on commit 0e2275f

Please sign in to comment.