mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
feat(docs): Add eslint and prettier GH Actions.
This commit is contained in:
35
.github/workflows/doc-checks.yml
vendored
Normal file
35
.github/workflows/doc-checks.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: doc-checks
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docs/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- "docs/**"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
name: ESLint
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: docs
|
||||
- name: ESLint
|
||||
run: npm run lint
|
||||
working-directory: docs
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
name: Prettier
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: docs
|
||||
- name: Prettier Check
|
||||
run: npm run prettier:check
|
||||
working-directory: docs
|
||||
Reference in New Issue
Block a user