-
-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (31 loc) · 895 Bytes
/
node-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
name: Run Tests
on:
push:
branches: [ "main-1x" ]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-22.04
container: fedora:38
strategy:
matrix:
# removing '14.x', for now
version: ['16.x', '18.x', '20.x']
steps:
- name: Install libgpiod and other system dependencies
run: |
dnf install libgpiod libgpiod-devel libgpiod-utils \
nodejs-devel make g++ kmod kernel-modules-core -y
- name: Checkout
uses: actions/checkout@v4
- name: Configure Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
registry-url: 'https://registry.npmjs.org'
- name: Run tests against the simulator
run: |
npm ci
npm run build
npm run configure-gpio-sim
npm run test:coverage