-
-
Notifications
You must be signed in to change notification settings - Fork 226
46 lines (38 loc) · 1.05 KB
/
nodejs.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: [pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x, 18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: setup git
if: matrix.os == 'windows-latest'
run: |
git config core.symlinks true
git reset --hard
- name: ${{ matrix.os }} / Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run compile
npm run component
npm run depcheck
npm run depcheck-json
npm run lint
npm run prettier-check
npm run test-coverage
env:
CI: true
- uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '12.x'
with:
file: ./coverage/lcov.info
name: codecov-umbrella
fail_ci_if_error: false