Skip to content

Commit

Permalink
Migrate Screwdriver workflow to link check for Jekyll installable to …
Browse files Browse the repository at this point in the history
…GitHub Actions - MERGEOK (#32148)
  • Loading branch information
glebashnik authored Aug 16, 2024
1 parent 0fc2b00 commit b198dce
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Link checker

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 2 * * 1-5"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/jekyll-link-checker.yml@main
with:
ignore-urls: |-
/slack.vespa.ai/
/localhost:8080/
/127.0.0.1:3000/
/favicon.svg/
/main.jsx/
ignore-files: |-
/fnet/index.html/
/client/js/app/node_modules/
swap-urls: |-
(.*).md:\1.html
25 changes: 0 additions & 25 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,28 +332,3 @@ jobs:
steps:
- cleanup: |
screwdriver/delete-old-cloudsmith-artifacts.sh
link-check:
image: ruby:3.1
annotations:
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- install: |
gem update --system 3.3.3
gem install bundler
export LANG=C.UTF-8
bundle install
- add-front-matter-for-processing: |
find . -not -path './_site/*' -name \*.md | \
while read f; do (echo -e "---\nrender_with_liquid: false\n---\n"; cat ${f})>${f}.new; mv ${f}.new ${f}; done
- build-site: |
bundle exec jekyll build
- check-links: |
bundle exec htmlproofer \
--assume-extension --check-html --no-check-external-hash --no-enforce-http \
--typhoeus '{"connecttimeout": 10, "timeout": 30, "followlocation": false}' \
--hydra '{"max_concurrency": 1}' \
--ignore-urls '/slack.vespa.ai/,/localhost:8080/,/127.0.0.1:3000/,/favicon.svg/,/main.jsx/' \
--ignore-files '/fnet/index.html/,/client/js/app/node_modules/' \
--swap-urls '(.*).md:\1.html' \
_site

0 comments on commit b198dce

Please sign in to comment.