Skip to content

Commit 6d209bb

Browse files
cb341claude
andcommitted
refactor: extract htmlproofer into bin/check, use in both workflows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 368909d commit 6d209bb

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,4 @@ jobs:
1919
node-version: "lts/*"
2020
- run: npm install -g prettier
2121
- run: bin/build
22-
- run: |
23-
# linkedin.com, amd.com, seagate.com, corsair.com, reddit.com: bot-blocking (links are valid, fail without browser UA)
24-
# TODO: remove /cb341\.dev\/blog\/tags/ once deployed
25-
bundle exec htmlproofer _site \
26-
--ignore-urls "/linkedin\.com/,/amd\.com/,/seagate\.com/,/corsair\.com/,/reddit\.com/,/cb341\.dev\/blog\/tags/" \
27-
--ignore-status-codes "429,999"
22+
- run: bin/check

.github/workflows/deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ jobs:
3131
node-version: "lts/*"
3232
- run: npm install -g prettier
3333
- run: bin/build
34-
- run: |
35-
# linkedin.com, amd.com, seagate.com, corsair.com, reddit.com: bot-blocking (links are valid, fail without browser UA)
36-
bundle exec htmlproofer _site \
37-
--ignore-urls "/linkedin\.com/,/amd\.com/,/seagate\.com/,/corsair\.com/,/reddit\.com/,/cb341\.dev\/blog\/tags/" \
38-
--ignore-status-codes "429,999"
34+
- run: bin/check
3935
- uses: actions/configure-pages@v5
4036
- uses: actions/upload-pages-artifact@v3
4137
with:

bin/check

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# linkedin.com, amd.com, seagate.com, corsair.com, reddit.com: bot-blocking (links are valid, fail without browser UA)
5+
# TODO: remove /cb341\.dev\/blog\/tags/ once deployed
6+
bundle exec htmlproofer _site \
7+
--ignore-urls "/linkedin\.com/,/amd\.com/,/seagate\.com/,/corsair\.com/,/reddit\.com/,/cb341\.dev\/blog\/tags/" \
8+
--ignore-status-codes "429,999"

0 commit comments

Comments
 (0)