Skip to content

Commit

Permalink
workflows: move docs to its own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 18, 2022
1 parent fe04eab commit fccd8ad
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 14.x, 16.x ]
os: [ ubuntu-latest ]
node-version: [ 12.x, 14.x, 16.x ]
fail-fast: false

steps:
Expand All @@ -35,11 +35,4 @@ jobs:
cd docs; npm install; cd ..
- name: Run tests
run: npm run test

- name: Docs
run: |
cd docs; npm run make; cd ..
git status
git diff
git diff-index --quiet HEAD -- docs || (echo "$(tput bold)$(tput setaf 4)Did you forget to rebuild the docs? $ cd docs; npm run make$(tput sgr0)"; exit 1)
run: npm run test
42 changes: 42 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Docs

on: [ push ]

env:
CI: true

jobs:

ci-test:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 16.x ]
fail-fast: false

steps:
- uses: actions/checkout@v2
name: Checkout Module
with:
fetch-depth: 1

- uses: actions/setup-node@v2
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}

- name: npm install
run: |
npm install
cd docs; npm install; cd ..
- name: Docs
run: |
cd docs; npm run make; cd ..
git status
git diff
git diff-index --quiet HEAD -- docs || (echo "$(tput bold)$(tput setaf 4)Did you forget to rebuild the docs? $ cd docs; npm run make$(tput sgr0)"; exit 1)

0 comments on commit fccd8ad

Please sign in to comment.