CI #1138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 0 * * *' # every day at 00:00 | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: oven-sh/setup-bun@v1 | |
- name: Check all links | |
run: bun x markdown-link-check --config=.github/workflows/config.json README.md | |
- name: "Check for exactly 200 links" | |
run: | | |
grep "\- \[" README.md | grep -Eo "https?://[^][ ]+" | sed 's/)//' | sort > links-only.txt | |
if [ $(uniq links-only.txt | wc -l) != 200 ]; then | |
echo "ERROR: List is not exactly 200 entries" | |
echo "DUPLICATES:" | |
uniq -d links-only.txt | |
exit 1 | |
fi |