-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 931 Bytes
/
test.yml
File metadata and controls
34 lines (34 loc) · 931 Bytes
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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO (next major): officially drop node 16
node: [18, 20, 22]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Install Playwright
if: matrix.node == 18
run: npx playwright install --with-deps
- name: Test
run: npm test
- name: Test browsers
if: matrix.node == 18
run: npm run test-browsers-local
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}