Skip to content

Commit a7f15f4

Browse files
committed
chore: change playwright github action config
1 parent 7548ce3 commit a7f15f4

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

.github/workflows/playwright.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
5-
pull_request:
6-
branches: [ main, master ]
4+
branches:
5+
- main
6+
- master
7+
- develop
8+
pull_request: null
9+
workflow_dispatch: null
710
jobs:
811
test:
912
timeout-minutes: 60
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 18
16-
- name: Install dependencies
17-
run: npm ci
18-
- name: Install Playwright Browsers
19-
run: npx playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: npx playwright test
22-
- uses: actions/upload-artifact@v3
23-
if: always()
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
15+
- uses: actions/checkout@v4
16+
- run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
17+
uses: actions/setup-node@v3
18+
- name: Install dependencies
19+
run: yarn install --frozen-lockfile
20+
- name: Install Playwright Browsers
21+
run: yarn playwright install --with-deps
22+
- name: Run Playwright tests
23+
run: yarn playwright test
24+
- uses: actions/upload-artifact@v3
25+
if: always()
26+
with:
27+
name: playwright-report
28+
path: playwright-report/
29+
retention-days: 30

0 commit comments

Comments
 (0)