summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-11-03 13:46:07 -0500
committerPete Johanson <peter@peterjohanson.com>2020-11-03 15:02:41 -0500
commitfe62929af855c71f363da8011d57653d5ea83a44 (patch)
tree0bdf5aa6623370493fd7cd043dc465f9b8e9b467 /.github/workflows
parenta1dd21651911df5dcd42e9980d91e51bef45dfe8 (diff)
feat(docs): Add eslint and prettier GH Actions.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/doc-checks.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/doc-checks.yml b/.github/workflows/doc-checks.yml
new file mode 100644
index 0000000..a31a88e
--- /dev/null
+++ b/.github/workflows/doc-checks.yml
@@ -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