Debian Codegraph @

resolve-exports/.github/workflows/ci.yml

raw
1 name: CI
2
3 on:
4 push:
5 paths-ignore:
6 - 'bench/**'
7 - '*.md'
8 branches:
9 - '**'
10 tags-ignore:
11 - '**'
12 pull_request:
13 paths-ignore:
14 - 'bench/**'
15 - '*.md'
16 branches:
17 - master
18
19 jobs:
20 test:
21 name: Node.js v${{ matrix.nodejs }}
22 runs-on: ubuntu-latest
23 strategy:
24 matrix:
25 # Node 10.x not supported by tsm & bundt
26 nodejs: [12, 14, 16, 18]
27 steps:
28 - uses: actions/checkout@v2
29 - uses: actions/setup-node@v1
30 with:
31 node-version: ${{ matrix.nodejs }}
32
33 - name: Install
34 run: npm install
35
36 - name: Type Check
37 run: npm run types
38
39 - name: Test
40 if: matrix.nodejs < 18
41 run: npm test
42
43 - name: Test w/ Coverage
44 if: matrix.nodejs >= 18
45 run: |
46 npm install -g nyc
47 nyc --include=src npm test
48
49 - name: Compile
50 if: matrix.nodejs >= 18
51 run: npm run build
52
53 - name: Report
54 if: matrix.nodejs >= 18
55 run: |
56 nyc report --reporter=text-lcov > coverage.lcov
57 bash <(curl -s https://codecov.io/bash)
58 env:
59 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}