Skip to content

Commit

Permalink
Merge pull request #40 from glotzerlab/lychee
Browse files Browse the repository at this point in the history
Use lychee instead of mdbook-linkcheck.
  • Loading branch information
joaander authored Aug 22, 2024
2 parents b11059c + 97483cb commit 043854b
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,36 @@ 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
RUST_LOG: "mdbook=info"
- name: Check links
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # v1.10.0
with:
args: -n
--exclude https://glotzerlab.engin.umich.edu
--exclude 'https://github.com/glotzerlab/row/edit.*'
--exclude doi.org
'./**/*.md'
'./**/*.html'
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 043854b

Please sign in to comment.