-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.04 KB
/
test.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
37
38
39
40
41
42
43
44
45
46
47
name: Lint and Test
on:
push:
branches:
- master
pull_request:
paths-ignore:
- '*.md'
- 'docs/**'
jobs:
test:
strategy:
matrix:
node-version: [16, 18, 20]
runs-on: ubuntu-latest
name: Test Node.js ${{ matrix.node-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js, PNPM and install deps
uses: ./.github/actions/setup-with-deps-action
with:
node-version: ${{ matrix.node-version }}
- name: Test and Coverage
run: pnpm test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage/lcov.info
name: ${{ matrix.node-version }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js, PNPM and install deps
uses: ./.github/actions/setup-with-deps-action
with:
node-version: 20
- name: Lint
run: pnpm lint