initial mocking of the os module works #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |