-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (38 loc) · 990 Bytes
/
ci.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
47
48
name: "calipers-pdf"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
# Run the same tests suite for node 12, 14, 16, 18
strategy:
matrix:
node-version: [12, 14, 16, 18]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt-get -y install \
libpoppler-cpp-dev \
libpoppler-private-dev
# Setup this version of Node
# Cache is saved and restored by actions/setup-node
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Enforce test coverage
run: npm run enforce
- name: Run lint
run: npm run lint