-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (32 loc) · 953 Bytes
/
ci.yml
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
name: ci
on: push
jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest]
node: [18, 20, 22]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run unit
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- run: npm run build
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && matrix.node == 22
- uses: andresz1/size-limit-action@v1
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == 22
with:
github_token: ${{ secrets.GITHUB_TOKEN }}