Skip to content

Commit

Permalink
Feature/151 broken link checker (#272)
Browse files Browse the repository at this point in the history
* resolve CSP script load error.

* add maps to vite build.

* Add in a broken link checker.

* update job name.

* ajust ci port for job.

* run command from job instead of package.json.

* Add wait on.

* install package.

* change how server is started.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* troubleshooting.

* Code cleanup
  • Loading branch information
john-labbate authored Jul 17, 2024
1 parent 624e822 commit bdb5108
Show file tree
Hide file tree
Showing 4 changed files with 1,256 additions and 47 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/broken-link-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Broken Link Checker
on:
push:
paths:
- front-end/**
- .github/**

jobs:
broken-link-checker:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'front-end'
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: front-end/package-lock.json

- name: install dependencies
run: npm ci

- name: Run broken link checker
run: npm run link-checker:ci
10 changes: 10 additions & 0 deletions front-end/linkinator-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recurse": true,
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"Referer": "http://localhost:5173/"
},
"skip": [
],
"verbosity": "debug"
}
Loading

0 comments on commit bdb5108

Please sign in to comment.