Skip to content

Commit

Permalink
feat: запуск Playwright в Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Feb 3, 2022
1 parent 4e3ce05 commit 2f0c092
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/playwright-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Playwright E2E tests
on: [pull_request]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm ci

- name: Install Playwright
run: npx playwright install --with-deps

- name: Run your tests
run: npm run test:e2e

- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-results
path: test-results
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const isCI = !!process.env.CI
const config: PlaywrightTestConfig = {
forbidOnly: isCI,
retries: isCI ? 2 : 0,
reporter: isCI ? "github" : "list",
testDir: "./tests",
testMatch: /.*\.test\.ts/,
use: {
Expand Down

0 comments on commit 2f0c092

Please sign in to comment.