Skip to content

Commit

Permalink
CI: Add Link Checker (ethereum#5361)
Browse files Browse the repository at this point in the history
* Replace HTMLProofer with a faster alternative

* Add markdown link checker config

* What a weird bug

* Try this fix?

* Try recursively `chown`ing the directory?

* Please let this work :|

* Escape the star

* Please work...

* Update ci.yml

* Move to config directory

* Oops
  • Loading branch information
Pandapip1 authored Dec 20, 2022
1 parent 607e39b commit 5b3d18c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,44 @@ jobs:
htmlproofer:
name: HTMLProofer
runs-on: ubuntu-20.04

steps:
- name: Checkout EIP Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Install OpenSSL
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev

- name: Install Ruby
uses: ruby/setup-ruby@08245253a76fa4d1e459b7809579c62bd9eb718a
with:
ruby-version: 2.6.0
bundler-cache: true

- name: Build Website
run: |
bundle exec jekyll doctor
bundle exec jekyll build
- name: HTML Proofer
run: bundle exec htmlproofer ./_site --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --timeframe=6w --disable-external

- name: DNS Validator
run: bundle exec github-pages health-check

link-check:
name: Link Check
runs-on: ubuntu-latest

steps:
- name: Checkout EIP Repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Link Checker
uses: gaurav-nelson/github-action-markdown-link-check@0a51127e9955b855a9bbfa1ff5577f1d1338c9a5
with:
config-file: config/mlc_config.json
use-quiet-mode: no
use-verbose-mode: yes
check-modified-files-only: yes

codespell:
name: CodeSpell
runs-on: ubuntu-latest
Expand Down
13 changes: 13 additions & 0 deletions config/mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ignorePatterns": [],
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "/github/workspace/"
}
],
"aliveStatusCodes": [
200,
429
]
}

0 comments on commit 5b3d18c

Please sign in to comment.