-
Notifications
You must be signed in to change notification settings - Fork 43
57 lines (45 loc) · 1.35 KB
/
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
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- "*"
- "!master"
pull_request:
branches:
- master
jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [16]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup C++ environment on linux
uses: kurocha/setup-cpp@v1
if: runner.os == 'Linux'
- name: Install dependencies on linux
run: sudo apt-get install -yq libblas-dev liblapack-dev liblapacke-dev
if: runner.os == 'Linux'
- name: Install dependencies on mac
run: brew install lapack
if: runner.os == 'macOS'
- name: Install package dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Publish coverage to CodeClimate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 7bc2ff765ac0619975d32fe57959db6374d14a96780a1438ec68ea14036748e1
with:
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov