mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
c000df32f1
Previously we only checked internal linking inside the documentation for consistency. Now there is also a basic test to see whether links from OpenProject into the documentation are pointing to a valid page. I used this opportunity to move the static links into a Yaml file. This made it easier to load the list of static links for the check as well and it removed a long data object from the Ruby code.
25 lines
443 B
YAML
25 lines
443 B
YAML
name: "Docs"
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- release/*
|
|
paths:
|
|
- 'docs/**'
|
|
- 'config/static_links.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
docs-check:
|
|
name: Check internal links in documentation
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
- run: bundle exec ./script/docs/check_links
|