-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 737 Bytes
/
Copy pathtest.yaml
File metadata and controls
37 lines (30 loc) · 737 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
35
36
37
name: Test
on:
push:
branches: [ dev-ci, main ]
pull_request:
branches: [ dev-ci, main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18 ]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn install --frozen-lockfile
- name: Build code
run: yarn build
- name: Test with coverage
run: yarn test
- name: Upload coverage profile
uses: codecov/codecov-action@v2
with:
file: coverage/lcov.info