docusaurus/.github/workflows/lint.yml
2021-06-09 20:06:57 +02:00

25 lines
549 B
YAML

name: Lint
on:
pull_request:
branches:
- docusaurus-v1
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 --immutable # Fails if yarn.lock is modified
- name: Lint
run: yarn lint:ci
- name: Prettier Code
run: yarn prettier:diff
- name: Prettier Docs
run: yarn prettier-docs:diff