-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.55 KB
/
playwright.yml
File metadata and controls
67 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Playwright Tests
on:
pull_request:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
test:
name: Playwright end-to-end tests
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm install --no-fund --no-audit --ignore-scripts
- name: Install Playwright Browsers
run: npx playwright install chromium --no-shell
- name: Run Playwright tests
run: npx playwright test --forbid-only
- name: Store Playwright test results
uses: actions/upload-artifact@v5
with:
name: css-coverage
path: css-coverage/*.json
retention-days: 30
css-coverage:
name: Verify CSS Code Coverage
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm install --no-fund --no-audit --ignore-scripts
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: css-coverage
path: ./css-coverage
- name: Analyze CSS Code Coverage
run: npm run css-coverage
env:
FORCE_COLOR: '3'