Skip to content

Update path

Update path #3278

Workflow file for this run

name: Checks
on: [push]
env:
NODE_OPTIONS: "--max-old-space-size=6144"
NODE_VERSION: 16
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Additional dependencies
run: |
sudo apt-get update -y
sudo apt-get -y install rsync libudev-dev libusb-1.0-0-dev
- name: Use Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Archive build artifacts
uses: actions/cache@v3
with:
path: dist/
key: build-cache-${{ github.sha }}
test:
name: Test
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
ci_index: [0, 1, 2, 3]
ci_total: [4]
steps:
- name: Download build artifacts
uses: actions/cache/restore@v3
id: restore-cache
with:
key: build-cache-${{ github.sha }}
- name: Execute tests
run: yarn test --bail
env:
CI_TOTAL: ${{ matrix.ci_total }}
CI_INDEX: ${{ matrix.ci_index }}
lint:
name: Lint
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint