Skip to content

Commit

Permalink
Check for dead links
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiSG authored Jul 27, 2023
2 parents bf80ad3 + 51c30e0 commit 264de9b
Show file tree
Hide file tree
Showing 4 changed files with 1,302 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
with:
cache: npm
- run: npm ci
- run: npm run lint:markdown
- run: npm run lint:css
- run: npm run lint:js
- name: Lint Markdown
run: npm run lint:markdown
- name: Lint CSS
run: npm run lint:css
- name: Lint JavaScript
run: npm run lint:js
- name: Set Hugo up
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.108.0'
extended: true # Prevent error building site: POSTCSS: failed to transform, see https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version
- name: Build with Hugo
run: hugo --minify
- name: Test broken links
run: npm run test:links
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ To automatically fix, where possible, problems reported:
npm run lint:js -- --fix
```

### Check for broken links

Build the site

```sh
hugo --minify
```

and run

```sh
npm run test:links
```

- - -

## License
Expand Down
Loading

0 comments on commit 264de9b

Please sign in to comment.