-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (36 loc) · 810 Bytes
/
ci.yml
File metadata and controls
38 lines (36 loc) · 810 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
38
name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
tags:
- '*'
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node: ['*', 'lts/*']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests and collect coverage
run: npm run test -- --coverage
- name: Run build
run: npm run build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3