Skip to content

Commit

Permalink
CI/move link checking to pr checks (#83)
Browse files Browse the repository at this point in the history
* ci: move link checking to checks blocking pr merge

* ci: include previously excluded nuttx-getting-started article from link checking
  • Loading branch information
f-hollow committed Aug 14, 2024
1 parent ace2ea2 commit dd3dd22
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/deploy-hugo-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,7 @@ defaults:
shell: bash

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: |
--no-progress
--include-fragments
--exclude-path ./themes/
--exclude-path ./layouts/
--exclude-path ./content/blog/nuttx-getting-started/
.
# Fail action on broken links
fail: true

build-and-deploy:
needs: check-links
runs-on: ubuntu-latest
steps:

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/pr-check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check links

on:
pull_request:
branches: [main]

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: |
--no-progress
--include-fragments
--exclude-path ./themes/
--exclude-path ./layouts/
.
# Fail action on broken links
fail: true
4 changes: 4 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# content/blog/books-simplified-embedded-rust/index.md
http://ser-book.com/espnostd
http://ser-book.com/espstd
https://www.theembeddedrustacean.com/subscribe

0 comments on commit dd3dd22

Please sign in to comment.