Skip to content

Commit

Permalink
feat: migrate "link-checker-sample-apps" workflow from Screwdriver to…
Browse files Browse the repository at this point in the history
… Github

temporary test with separate branch
  • Loading branch information
esolitos authored and gitbutler-client committed Aug 13, 2024
1 parent 1ff9e32 commit 2e3fe6e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Link checker

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "00 3 * * 1-5"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/jekyll-link-checker.yml@remove-redirect-files-before-link-check
with:
additional-args: "--directory-index-file README.html"
add-no-render-with-liquid: "true"
build-plugins: |
_plugins-linkcheck
pre-check-script: |
mv links-to-check.html _site
echo "Broken links in links-to-check.html are extracted from services/hosts/deployment.xml in the sample apps, as well as links in javadoc."
echo "Search for broken links in these files."
ignore-files: |-
/tensor-playground/src/main/resources/playground/
/src/main/resources/site/index.html/
/dense-passage-retrieval-with-ann/src/main/resources/frontend/index.html/
ignore-urls: |-
src/main/application/schemas/wiki.sd#L80
/localhost:8080/
src/main/application/search/query-profiles
/hub.docker.com/r/vespaengine/vespa/tags/
swap-urls: |-
(https\://github.com.*/master/.*)#.*:\1
(https\://github.com.*/main/.*)#.*:\1
^(?!https)(.*)\.md:\1.html
11 changes: 7 additions & 4 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ jobs:
echo "Search for broken links in these files."
- check-links: |
bundle exec htmlproofer \
--assume-extension --check-html --no-check-external-hash --no-enforce-http \
--typhoeus '{"connecttimeout": 10, "timeout": 30, "accept_encoding": "zstd,br,gzip,deflate"}' \
--hydra '{"max_concurrency": 1}' \
--assume-extension \
--check-html \
--directory-index-file README.html \
--ignore-urls 'src/main/application/schemas/wiki.sd#L80,/localhost:8080/,src/main/application/search/query-profiles,/hub.docker.com/r/vespaengine/vespa/tags/' \
--hydra '{"max_concurrency": 1}' \
--ignore-files '/tensor-playground/src/main/resources/playground/,/src/main/resources/site/index.html/,/dense-passage-retrieval-with-ann/src/main/resources/frontend/index.html/' \
--ignore-urls 'src/main/application/schemas/wiki.sd#L80,/localhost:8080/,src/main/application/search/query-profiles,/hub.docker.com/r/vespaengine/vespa/tags/' \
--no-check-external-hash \
--no-enforce-http \
--swap-urls '(https\://github.com.*/master/.*)#.*:\1,(https\://github.com.*/main/.*)#.*:\1,^(?!https)(.*)\.md:\1.html' \
--typhoeus '{"connecttimeout": 10, "timeout": 30, "accept_encoding": "zstd,br,gzip,deflate"}' \
_site
verify-billion-scale-vector-search:
Expand Down

0 comments on commit 2e3fe6e

Please sign in to comment.