Skip to content

Commit 1cae679

Browse files
committed
ADD TO: basic QA / add link checker
1 parent c1898c5 commit 1cae679

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/basic-qa.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,26 @@ jobs:
2323
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
2424
with:
2525
strict: true
26+
27+
linkcheck:
28+
name: "Check links"
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
35+
- name: Restore lychee cache
36+
uses: actions/cache@v4
37+
with:
38+
path: .lycheecache
39+
key: cache-lychee-${{ github.sha }}
40+
restore-keys: cache-lychee-
41+
42+
- name: Link Checker
43+
uses: lycheeverse/lychee-action@v2
44+
with:
45+
args: --cache --max-cache-age 1w --verbose './**/*.md'
46+
format: markdown
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
fail: true

0 commit comments

Comments
 (0)