52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- "dependabot/**"
|
|
pull_request:
|
|
|
|
env:
|
|
FORCE_COLOR: 2
|
|
NODE: 14
|
|
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "${{ env.NODE }}"
|
|
|
|
- run: java -version
|
|
|
|
- name: Set up npm cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
|
|
${{ runner.os }}-node-v${{ env.NODE }}-
|
|
|
|
- name: Install npm dependencies
|
|
run: npm ci
|
|
|
|
- name: Build docs
|
|
run: npm run docs-build
|
|
|
|
- name: Validate HTML
|
|
run: npm run docs-vnu
|
|
|
|
- name: Run linkinator
|
|
uses: JustinBeckwith/linkinator-action@v1
|
|
with:
|
|
paths: _gh_pages
|
|
recurse: true
|
|
silent: true
|
|
skip: "^(?!http://localhost)"
|