Skip to content
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: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ jobs:
working-directory: astro-site
run: npm run build

# TODO: Fix lychee configuration for Astro's base path and fragment links (#121)
# - name: Check links
# uses: lycheeverse/lychee-action@v2
# with:
# args: --base ${{ github.workspace }}/astro-site/dist --root-dir ${{ github.workspace }}/astro-site/dist astro-site/dist
# fail: true
- name: Create base path symlink for link checker
run: ln -s . astro-site/dist/tutorial-git

- name: Check links
uses: lycheeverse/lychee-action@v2
with:
args: --root-dir astro-site/dist --config lychee.toml 'astro-site/dist/**/*.html'
fail: true
14 changes: 8 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ jobs:
working-directory: astro-site
run: npm run build

# TODO: Fix lychee configuration for Astro's base path and fragment links (#121)
# - name: Check links
# uses: lycheeverse/lychee-action@v2
# with:
# args: --base ${{ github.workspace }}/astro-site/dist --root-dir ${{ github.workspace }}/astro-site/dist astro-site/dist
# fail: true
- name: Create base path symlink for link checker
run: ln -s . astro-site/dist/tutorial-git

- name: Check links
uses: lycheeverse/lychee-action@v2
with:
args: --root-dir astro-site/dist --config lychee.toml 'astro-site/dist/**/*.html'
fail: true

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
13 changes: 13 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Lychee link checker configuration
# Runs against the Astro build output in astro-site/dist/

# Exclude external URLs to keep CI fast and deterministic
exclude = [
"^https://",
"^http://",
]

# Accept 200 and 204
accept = [200, 204]

no_progress = true
Loading