blob: 1a77e7fc8046d313c36179f60d76246253ec01bf [file] [edit]
name: Linkinator
on:
schedule:
- cron: "0 4 1 * *"
workflow_dispatch:
env:
FORCE_COLOR: 2
permissions:
contents: read
jobs:
linkinator:
runs-on: ubuntu-latest
if: github.repository == 'twbs/bootstrap'
steps:
- name: Clone repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ".nvmrc"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build docs
run: npm run docs-build
- name: Run linkinator
uses: JustinBeckwith/linkinator-action@12f7a61a56e5e75d659f0dfd6357e2d852ede281 # v2.5.0
with:
paths: _site
recurse: true
verbosity: error
skip: >-
^http://localhost
^https://github.com/floating-ui/popper-docs/blob/main/docs/v2/
^https://www.reddit.com
^https://medium.com