mirror of
https://github.com/keyboardio/Chrysalis.git
synced 2026-02-28 19:07:17 +01:00
It happend a few times before that we updated `package.json`, but forgot to update `yarn.lock`. This extra steps make sure we don't miss that. Signed-off-by: Gergely Nagy <algernon@keyboard.io>
38 lines
764 B
YAML
38 lines
764 B
YAML
name: Lint
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2
|
|
- name: Install udev-dev
|
|
run: sudo apt update && sudo apt install libudev-dev
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Set up yarn network timeout
|
|
run: yarn config set network-timeout 1000000 -g
|
|
|
|
- name: Install dependencies
|
|
env:
|
|
YARN_GPG: no
|
|
run: yarn install
|
|
|
|
- name: Run linters
|
|
run: |
|
|
yarn lint:css
|
|
yarn lint:js
|
|
|
|
- name: Check if yarn.lock is up to date
|
|
run: git diff --exit-code -- yarn.lock
|