Skip to content

Commit

Permalink
Use lychee instead of mdbook-linkcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Aug 22, 2024
1 parent b11059c commit 66b726f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,35 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up mdbook
uses: glotzerlab/workflows/setup-mdbook@ea2e25d07af862a1c696a932c2bd6b242d142049 # 0.2.0
- name: Add linkcheck configuration
run: |
echo -e "[output.linkcheck]\nfollow-web-links=true" >> doc/book.toml
cat doc/book.toml
- name: Build documentation
run: mdbook build doc
env:
RUST_LOG: "mdbook=info,linkcheck=warn,reqwest=debug"
- name: Set up mdbook
- name: Check links
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # v1.10.0
with:
args: -n
--exclude https://glotzerlab.engin.umich.edu
--exclude doi.org
'./**/*.md' './**/*.html'
-v
fail: true

check_licenses:
name: Check licenses
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up cargo-bundle-licenses
uses: glotzerlab/workflows/setup-cargo-bundle-licenses@ea2e25d07af862a1c696a932c2bd6b242d142049 # 0.2.0
- name: Check bundled licenses
run: cargo bundle-licenses --format yaml --output CI.yaml --previous THIRDPARTY.yaml --check-previous

tests_complete:
name: All tests
if: always()
needs: [unit_test, execute_tutorials, build_documentation]
needs: [unit_test, execute_tutorials, build_documentation,check_licenses]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 66b726f

Please sign in to comment.