working on gpio-sim #36
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: Run Tests | |
on: | |
push: | |
branches: [ "main-1x" ] | |
workflow_dispatch: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
# removing '14.x', for now | |
version: ['16.x', '18.x', '20.x'] | |
steps: | |
- name: Install libgpiod | |
run: | | |
sudo apt-get install gpiod libgpiod2 libgpiod-dev libnode-dev -y | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure Node | |
uses: actions/setup-node@v3 | |
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 test:coverage | |