Skip to content

Commit

Permalink
upload report and install deps correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Nov 14, 2023
1 parent 066d66e commit c798f34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

concurrency:
# Cancel in progress runs for this branch
Expand All @@ -22,11 +25,17 @@ jobs:
with:
version: 8
- name: Install Dependencies
run: pnpm install && pnpm playwright install
run: pnpm install && pnpm playwright install --with-deps
shell: sh
- name: Build Application
run: pnpm run build
shell: sh
- name: Run Tests
run: pnpm run test
shell: sh
shell: sh
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm run build && pnpm serve dist',
command: 'pnpm serve dist',
url: 'http://127.0.0.1:3000',
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit c798f34

Please sign in to comment.