-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (39 loc) · 896 Bytes
/
test.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
name: mapbox/node-cpp-skel
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
buildtype: ['release', 'debug']
node-version: ['10', '12', '13']
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt-get install -y libstdc++-5-dev
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and setup
run: |
node -v
which node
clang++ -v
which clang++
make "${BUILDTYPE}"
- name: Run tests
run: |
npm test