File tree 1 file changed +20
-8
lines changed
1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Link Checker and ESLint Run
1
+ name : Link Checker and ESLint
2
2
on :
3
3
push :
4
4
branches : [main]
5
5
pull_request :
6
6
branches : [main]
7
7
8
8
jobs :
9
- linkchecker :
9
+ lint-and-link-check :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v2
12
+ - name : Checkout Repository
13
+ uses : actions/checkout@v2
13
14
14
- - name : Set up Node.js
15
- uses : actions/setup-node@v2
15
+ - name : Setup Node
16
+ uses : actions/setup-node@v3
16
17
with :
17
- node-version : " 18"
18
+ node-version-file : " .nvmrc" # Assuming you have a .nvmrc file with the Node version
19
+ registry-url : " https://registry.npmjs.org"
20
+
21
+ - name : Install Yarn
22
+ # Use bash to avoid having a Windows/Linux specific step
23
+ shell : bash
24
+ run : |
25
+ YARN_VERSION=$(node -p "require('./package.json').engines.yarn")
26
+ echo "Installing yarn@$YARN_VERSION"
27
+ npm i -g yarn@$YARN_VERSION
28
+
29
+ - run : node -v
30
+ - run : yarn -v
18
31
19
32
- name : Install Dependencies
20
33
run : yarn install
21
34
22
- - name : Run ESLint Run
35
+ - name : Run ESLint
23
36
run : yarn eslint:run
24
37
25
38
- name : lychee Link Checker
26
- id : lychee
27
39
uses : lycheeverse/lychee-action@master
28
40
with :
29
41
args : --accept=200,403,429 --exclude=localhost "**/*.html" "**/*.md" "**/*.txt" "**/*.json"
You can’t perform that action at this time.
0 commit comments