File tree 2 files changed +35
-12
lines changed
2 files changed +35
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [push]
3
+ jobs :
4
+ ci :
5
+ name : CI - Node ${{ matrix.node-version }}, ${{ matrix.os }}
6
+
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ # TODO: add back Node 18 once node-canvas is properly supported: https://github.com/Automattic/node-canvas/issues/2025
11
+ node-version : [14.x, 16.x] # LTS Node: https://nodejs.org/en/about/releases/
12
+ os : [ubuntu-latest, windows-latest, macOS-latest]
13
+
14
+ steps :
15
+ - name : Checkout repo
16
+ uses : actions/checkout@v3
17
+ - name : Setup Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ cache : ' npm'
22
+ - name : Install
23
+ run : npm ci
24
+
25
+ - name : Typecheck
26
+ run : npm run tsc
27
+ - name : Lint
28
+ run : npm run lint
29
+ - name : Build
30
+ run : npm run build
31
+
32
+ - name : Test w/ coverage report
33
+ run : npm run test:coverage
34
+ - name : Upload coverage report to Codecov
35
+ uses : codecov/codecov-action@v2
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments