File tree Expand file tree Collapse file tree 4 files changed +767
-560
lines changed Expand file tree Collapse file tree 4 files changed +767
-560
lines changed Original file line number Diff line number Diff line change 3
3
name : Node.js CI
4
4
5
5
on :
6
- push :
7
- branches : [ "main" ]
8
- pull_request :
9
- branches : [ "main" ]
6
+ - push
7
+ - pull_request
10
8
11
9
jobs :
12
10
build :
15
13
16
14
strategy :
17
15
matrix :
18
- # Old infra requires Node 10
19
- node-version : [10.x, 18.x]
16
+ node-version : [18.x, 20.x]
20
17
21
18
steps :
22
19
- name : Install xmllint
Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
spider-check :
18
+ if : ${{ github.repository_owner == 'jquery' }} # skip on forks
18
19
env :
19
20
MY_SITE : https://api.jquery.com
20
21
runs-on : ubuntu-latest
21
- if : ${{ github.repository_owner == 'jquery' }} # skip on forks
22
+ env :
23
+ # Site address to crawl
24
+ MY_SITE : https://api.jquery.com
22
25
steps :
23
- - name : Checkout hydra-link-checker
24
- uses : actions/checkout@v3
25
- with :
26
- repository : jquery/hydra-link-checker
27
- ref : v2.0.0
28
- path : hydra
29
-
30
- # Checkout the API repo as well to provide the config for hydra-link-checker
31
- - name : Checkout API repo
26
+ - name : Checkout repo
32
27
uses : actions/checkout@v3
33
- with :
34
- path : api
35
28
36
29
- name : Run hydra-link-checker
37
- run : python3 hydra/hydra.py "$MY_SITE" --config api/.github/configs/hydra-config.json
30
+ run : |
31
+ curl -O https://raw.githubusercontent.com/jquery/hydra-link-checker/v2.0.0/hydra.py
32
+ python3 hydra.py "$MY_SITE" --config .github/configs/hydra-config.json
You can’t perform that action at this time.
0 commit comments