Skip to content

Commit dc3acbb

Browse files
authored
cache lint to reduce load (#343)
Signed-off-by: Jordan <jordan@nimblewidget.com>
1 parent fffdb0e commit dc3acbb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/lint.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ jobs:
77
steps:
88
- name: Checkout
99
uses: actions/checkout@v3
10+
- name: htmlproofer cache
11+
uses: actions/cache@v4
12+
with:
13+
path: public/linter-cache.json
14+
key: {{ runner.os }}-htmlproofer
1015
- uses: actions/setup-go@v4
1116
with:
1217
go-version-file: go.mod

hack/ci/link-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ CONTAINER_ENGINE=${CONTAINER_ENGINE:="docker"}
88
# 1: links going back to help.github.com are rate-limited and can make this flaky
99
# 2: docsy autogenerated edit links to original markdown source, which will fail if the markdown file is new
1010
# 3: ignore localhost link to a hugo site
11-
${CONTAINER_ENGINE} run --rm -v $(pwd)/public:/target mtlynch/htmlproofer /target --ignore-empty-alt --ignore-status-codes 429 --allow-hash-href --no-check-external-hash --ignore-urls '/help.github.com/,/edit\/master\/.*\.md/,/tree\/master\/.*\.md/,/new\/master\/.*filename=change-me\.md/,/localhost:1313/'
11+
${CONTAINER_ENGINE} run --rm -v $(pwd)/public:/target mtlynch/htmlproofer /target --ignore-empty-alt --ignore-status-codes 429 --allow-hash-href --no-check-external-hash --ignore-urls '/help.github.com/,/edit\/master\/.*\.md/,/tree\/master\/.*\.md/,/new\/master\/.*filename=change-me\.md/,/localhost:1313/' --cache '{ "timeframe": { "external": "30d", "internal": "2w" }, "cache_file": "linter-cache.json", "storage_dir": "/target" }'

0 commit comments

Comments
 (0)