Skip to content

Update build

Update build #3192

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 $NODE_VERSION
uses: actions/setup-node@v3
with:
node-version: $NODE_VERSION
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
test:
name: Test
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
ci_index: [0, 1, 2, 3]
ci_total: [4]
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 $NODE_VERSION
uses: actions/setup-node@v3
with:
node-version: $NODE_VERSION
cache: "yarn"
- 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 $NODE_VERSION
uses: actions/setup-node@v3
with:
node-version: $NODE_VERSION
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint