-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (36 loc) · 909 Bytes
/
ci.yaml
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
name: CI
on: push
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
node:
- '18'
- '16'
package:
- barnard59
- barnard59-core
- barnard59-rdf
- barnard59-sparql
- barnard59-base
- barnard59-graph-store
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx c8 --reporter lcovonly --reporter text wsrun --no-prefix -p ${{ matrix.package }} -c test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.package }}
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run lint