Skip to content

Commit

Permalink
docs: add CI action to check links
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Mar 22, 2024
1 parent e08b616 commit 2bad58f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docs

on:
push:
branches:
- main
paths:
- "docs/**"
pull_request:
paths:
- "docs/**"
workflow_dispatch:

jobs:
linkcheck:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup prerequisites
uses: ./.github/actions/setup-prerequisites

- name: Install node dependencies
working-directory: docs
run: pnpm install --frozen-lockfile

- name: Build
working-directory: docs
run: pnpm build

- name: Start
working-directory: docs
run: pnpm start &

# TODO: wait for server to be online?

- name: Check links
uses: filiph/linkcheck
with:
arguments: localhost:3000

0 comments on commit 2bad58f

Please sign in to comment.