Skip to content

Commit

Permalink
Merge pull request #314 from satisfactorymodding/ci-test
Browse files Browse the repository at this point in the history
Make only primary docs link checker fail CI
  • Loading branch information
budak7273 authored Sep 4, 2024
2 parents c86d6a5 + 23a5add commit ca1e51a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
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

0 comments on commit ca1e51a

Please sign in to comment.