docusaurus/.github/workflows/lint.yml
Sébastien Lorber 4d93c894f2
chore: unstable yarn.lock (#5067)
* fix unstable yarn.lock

* remove useless typescript dep
2021-06-25 16:19:12 +02:00

28 lines
735 B
YAML

name: Lint
on:
pull_request:
branches:
- master
jobs:
lint:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Installation
uses: bahmutov/npm-install@v1
with:
install-command: yarn install
# install-command: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
- name: Check immutable yarn.lock
run: git diff --exit-code
- name: Lint
run: yarn lint:ci
- name: Prettier Code
run: yarn prettier:diff
- name: Prettier Docs
run: yarn prettier-docs:diff