udpate yaml #796
Workflow file for this run
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: | |
test: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install missing dependencies on Linux | |
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
if: runner.os == 'Linux' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run unit tests | |
run: yarn test | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install missing dependencies on Linux | |
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
if: runner.os == 'Linux' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run ESLint | |
run: yarn lint | |
build: | |
name: Production build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install missing dependencies on Linux | |
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev | |
if: runner.os == 'Linux' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run build | |
env: | |
NODE_OPTIONS: --max-old-space-size=7168 | |
run: yarn build |