Skip to content

Commit

Permalink
ci: add playwright pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
KagamiChan committed Sep 29, 2024
1 parent 59567bf commit 852f248
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 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
pull_request:
branches: main
jobs:
playwright:
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: corepack pnpm install
- name: Install Playwright Browsers
run: corepack pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: corepack pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
30 changes: 0 additions & 30 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,6 @@ export default defineConfig({
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

/* Run your local dev server before starting the tests */
Expand Down

0 comments on commit 852f248

Please sign in to comment.