Skip to content

initial mocking of the os module works #3

initial mocking of the os module works

initial mocking of the os module works #3

name: Build and Test
on:
push:
branches: [ "vitest" ]
pull_request:
branches: [ "vitest" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
# - 14.x # Not supported by Vitest :(
# - 16.x # Not supported by Vitest :(
- 18.x
- 20.x
steps:
- name: Install Packages
run: sudo apt-get install -y libgpiod-dev
- name: Clone Sources
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: Install Dependencies
run: npm ci
- name: Build Library
run: npm run build --if-present
- name: Run Tests
run: npm test