Skip to content

Commit

Permalink
ci(broken-link-checker): add scheduler to check broken links automati…
Browse files Browse the repository at this point in the history
…cally (#109)

Co-authored-by: 박찬혁 <[email protected]>
  • Loading branch information
manudeli and okinawaa committed Jun 1, 2024
1 parent 4d479b0 commit bbb150a
Show file tree
Hide file tree
Showing 3 changed files with 1,188 additions and 20 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Broken link checker

on:
schedule:
- cron: '0 5 * * 1-5'
workflow_dispatch:
inputs: { url: { description: 'URL to check', required: false, default: 'https://es-hangul.slash.page' } }

jobs:
broken-link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
node-version-file: '.nvmrc'
- run: yarn install
- run: yarn blc ${{ github.event.inputs.url }} --ro
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@netlify/plugin-nextjs": "^5.0.0",
"@types/broken-link-checker": "^0",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@vitest/coverage-istanbul": "^1.5.0",
"@vitest/ui": "^1.5.0",
"broken-link-checker": "^0.7.8",
"eslint": "^7",
"eslint-config-prettier": "^8.5.0",
"packlint": "^0.2.4",
Expand Down
Loading

0 comments on commit bbb150a

Please sign in to comment.