From 0b543667056a00dc06e760eed1fb2b88ea739dbd Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Fri, 7 Oct 2022 20:50:20 -0400 Subject: [PATCH] Add GH Action --- .github/workflows/docs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..5cd3d65f4 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,28 @@ +name: Documentation Checks + +on: + push: + branches: + - develop + paths: + - "packages/mermaid/src/docs/**/*" + pull_request: + branches: + - develop + paths: + - "packages/mermaid/src/docs/**/*" +jobs: + spellcheck: + name: "Docs: Spellcheck" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: Check out the code + - uses: actions/setup-node@v1 + name: Setup node + with: + node-version: "16" + - run: npm install -g cspell + name: Install cSpell + - run: cspell --config ./cSpell.json "packages/mermaid/src/docs/**/*.md" --no-progress + name: run cSpell