Update workers #3314
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: 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 | |
- name: Build | |
run: yarn build | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
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 ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "yarn" | |
- name: Install packages | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Execute tests | |
run: yarn test --bail --parallel | |
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: 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: Lint | |
# run: yarn lint |