Update test.yaml #28
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: test | |
on: [push] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: "18" | |
- name: Install system dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install libusb-1.0-0-dev libasound2-dev libudev-dev | |
- name: Patch \#1030 (ubuntu 20.04) – Resolve missing permissions | |
if: matrix.os == 'ubuntu-20.04' | |
continue-on-error: true | |
run: | | |
sudo chown -R $USER:audio /dev/snd/ | |
- name: Patch \#1030 (ubuntu 22.04) – Removing midi services / samples | |
if: matrix.os == 'ubuntu-22.04' | |
continue-on-error: true | |
run: | | |
sudo rm -rf ./services/nodecg-io-midi-* | |
sudo rm -rf ./samples/midi-* | |
- name: Debug | |
continue-on-error: true | |
run: | | |
groups | |
ls -lah /dev/snd/ | |
- name: Install nodejs dependencies | |
run: npm ci | |
- name: Run easymidi | |
run: npm run test |