Skip to content

Commit

Permalink
Add modified playwright config.
Browse files Browse the repository at this point in the history
Use url to examples dir in webserver config.
yaph committed Oct 6, 2024
1 parent b6978ba commit fd7c2e3
Showing 2 changed files with 32 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm i
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run tests
run: npm run test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
10 changes: 5 additions & 5 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -50,10 +50,10 @@ export default defineConfig({
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run serve',
// url: 'http://127.0.0.1:8000',
// reuseExistingServer: !process.env.CI,
// },
webServer: {
command: 'npm run serve',
url: 'http://127.0.0.1:8000/examples/',
reuseExistingServer: !process.env.CI,
},
});

0 comments on commit fd7c2e3

Please sign in to comment.