File tree Expand file tree Collapse file tree 3 files changed +29
-39
lines changed
ci-scripts/by-name/docs-linkcheck Expand file tree Collapse file tree 3 files changed +29
-39
lines changed Original file line number Diff line number Diff line change 11name : " Docs linkcheck"
22
33on :
4+ pull_request :
45 workflow_dispatch :
56 schedule :
67 - cron : ' 0 7 * * 1' # At 07:00 on Monday
2324 persist-credentials : false
2425 - uses : nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
2526 - name : " Check docs links"
26- run : nix run --print-build-logs '.#ci-scripts/docs-linkcheck'
27+ run : nix run --print-build-logs '.#checks.x86_64-linux.docs-linkcheck.online'
28+ env :
29+ GITHUB_TOKEN : ${{ github.token }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Non-NixOS tests
2- { pkgs , ... } :
2+ { pkgs , self , ... } :
33{
4+ docs-linkcheck = pkgs . testers . lycheeLinkCheck {
5+ site = "${ pkgs . epnix . docs } /share/doc/epnix/html" ;
6+ remap = let
7+ current-version = pkgs . epnixLib . versions . current ;
8+ current-branch = if current-version == "dev" then "master" else current-version ;
9+ in {
10+ "^https://epics-extensions.github.io/EPNix/${ current-version } /" =
11+ "file://${ pkgs . epnix . docs } /share/doc/epnix/html/" ;
12+
13+ "^https://github.com/epics-extensions/(epn|EPN)ix/blob/${ current-branch } /([^?]+)(\\ ?.+)?$" = "file://${ self } /\\ $2" ;
14+ "^https://github.com/epics-extensions/(epn|EPN)ix/tree/${ current-branch } /([^?]+)(\\ ?.+)?$" = "file://${ self } /\\ $2" ;
15+ "^https://github.com/epics-extensions/(epn|EPN)ix/edit/${ current-branch } /([^?]+)(\\ ?.+)?$" = "file://${ self } /\\ $2" ;
16+ } ;
17+ extraConfig = {
18+ max_concurrency = 5 ;
19+ max_retries = 5 ;
20+ retry_wait_time = 3 ;
21+
22+ exclude_all_private = true ;
23+ extensions = [ "html" ] ;
24+ require_https = true ;
25+ hosts . "matrix.to" . include_fragments = false ;
26+ } ;
27+ } ;
428}
You can’t perform that action at this time.
0 commit comments