Files
chrysalis-mirror/.github/workflows/lint.yml
Gergely Nagy e909794728 CI: Check if yarn.lock is up to date as part of the lint workflow
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>
2022-06-03 01:23:08 +02:00

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