-
-
Notifications
You must be signed in to change notification settings - Fork 11
27 lines (27 loc) · 727 Bytes
/
node-test.yml
File metadata and controls
27 lines (27 loc) · 727 Bytes
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
---
name: Run Tests
on:
push:
branches: [ "main-1x" ]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-22.04
container: fedora:38
strategy:
matrix:
version: ['16.x', '20.x', '24.x']
steps:
- run: |
dnf install libgpiod libgpiod-devel libgpiod-utils \
nodejs-devel make g++ kmod kernel-modules-core -y
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
registry-url: 'https://registry.npmjs.org'
- run: |
npm ci
npm run build
# npm run configure-gpio-sim
# npm run test:coverage # unable to run in the simulator