Merge pull request #61 from defnecirci/master #123
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, pull_request, workflow_dispatch] | |
jobs: | |
check-links: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Link Checker | |
id: lc | |
uses: lycheeverse/lychee-action@v1.8.0 | |
with: | |
# See cli args at https://github.com/lycheeverse/lychee#commandline-parameters | |
# for excluded URLs, the checker seems to be stricter than Chrome | |
args: >- | |
--verbose --timeout 40 --insecure *.md | |
- name: Fail if there were link errors | |
run: exit ${{ steps.lc.outputs.exit_code }} |