Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make only primary docs link checker fail CI #314

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@ jobs:
- name: Build
run: npm run build:ci

- id: lychee
- id: lychee-main
name: Check for Broken Links (Main Docs)
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --exclude-all-private --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/**/*.html'
args: --verbose --exclude-all-private --no-progress --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/site/satisfactory-modding/**/*.html'
fail: true

- id: lychee-submods
name: Check for Broken Links (Subsites)
uses: lycheeverse/lychee-action@v1
with:
# TODO there surely must be a better way to do this
# exclude the main docs dir from this check to avoid doing work twice
args: --verbose --exclude-all-private --no-progress --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/site/[!s][!a][!t][!i]*/**/*.html'
fail: false

image:
name: Image
runs-on: ubuntu-latest
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,22 @@ jobs:
- name: Build
run: npm run build:ci

- id: lychee
- id: lychee-main
name: Check for Broken Links (Main Docs)
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --exclude-all-private --no-progress --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/**/*.html'
args: --verbose --exclude-all-private --no-progress --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/site/satisfactory-modding/**/*.html'
fail: true

- id: lychee-submods
name: Check for Broken Links (Subsites)
uses: lycheeverse/lychee-action@v1
with:
# TODO there surely must be a better way to do this
# exclude the main docs dir from this check to avoid doing work twice
args: --verbose --exclude-all-private --no-progress --accept '200,429' --github-token '${{ secrets.LYCHEE_TOKEN }}' './build/site/[!s][!a][!t][!i]*/**/*.html'
fail: false

image:
name: Image
runs-on: ubuntu-latest
Expand Down