-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 960 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
37
38
39
40
41
42
43
44
45
46
name: 'CI'
on:
push:
branches:
- main
pull_request:
types: ['opened', 'edited', 'synchronize']
jobs:
test:
name: 'Test in: ${{ matrix.os }}, node-${{ matrix.node }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16, 18]
steps:
- name: checkout
uses: actions/checkout@v3
- name: enable corepack
run: corepack enable
- name: set up node.js v${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: install dependencies
run: pnpm install
- name: test
run: pnpm test
- name: build
run: pnpm build
- name: upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true