Skip to content

Commit 4a07747

Browse files
ci: run e2e on pr.
1 parent edd5d0e commit 4a07747

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
name: Playwright
22

33
on:
4-
push:
4+
pull_request:
55
branches:
66
- main
7-
paths:
7+
types:
8+
- opened
9+
- synchronize
10+
paths: &playwright_paths
811
- 'src/**'
912
- 'playwright/**'
1013
- 'package-lock.json'
1114
- 'playwright.config.ts'
1215
- '.github/workflows/playwright.yml'
16+
push:
17+
branches:
18+
- main
19+
paths: *playwright_paths
1320
workflow_dispatch:
1421

22+
concurrency:
23+
group: playwright-${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
25+
1526
jobs:
1627
e2e:
1728
name: ${{ matrix.jobName }}

0 commit comments

Comments
 (0)