Skip to content

pin ubuntu version

pin ubuntu version #33

Workflow file for this run

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