Skip to content

Commit 3f76369

Browse files
authored
add link checker to CI (#94)
* add link checker to CI * fix broken link
1 parent 8d65ead commit 3f76369

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/links.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Links
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
repository_dispatch:
9+
workflow_dispatch:
10+
11+
jobs:
12+
linkChecker:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
16+
17+
- name: Link Checker
18+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411
19+
with:
20+
args: --cache --accept 200,429 --verbose --require-https --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" --no-progress **/*.md **/*.html **/*.toml **/*.json
21+
fail: true
22+
env:
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

docs/LEARNING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ This is a great starting point if you're new to both MoonScript and Lua, explain
66
The primary spot for Learning Resources is [the MoonScript website][learn].
77
It assumes you are already familiar with Lua.
88

9-
[leafo]: https://leafo.net/posts/An_overview_of_MoonScript.html
9+
[leafo]: https://leafo.net/posts/moonscript_overview.html
1010
[learn]: https://moonscript.org/#learning

0 commit comments

Comments
 (0)