File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : " Build"
2
+
2
3
on :
3
4
push :
4
5
paths-ignore : [ '*.md' ]
9
10
build :
10
11
runs-on : ubuntu-latest
11
12
steps :
12
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : 20
17
+ cache : ' npm'
13
18
- run : |
14
19
npm install
15
20
npm run all
16
21
17
22
self-test :
18
23
runs-on : ubuntu-latest
19
24
steps :
20
- - uses : actions/checkout@v3
25
+ - uses : actions/checkout@v4
21
26
- uses : ./
22
27
id : filter
23
28
with :
Original file line number Diff line number Diff line change 10
10
build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : 20
17
+ cache : ' npm'
14
18
- run : |
15
19
npm install
16
20
npm run all
20
24
permissions :
21
25
pull-requests : read
22
26
steps :
23
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
24
28
- uses : ./
25
29
id : filter
26
30
with :
41
45
permissions :
42
46
pull-requests : read
43
47
steps :
44
- - uses : actions/checkout@v3
48
+ - uses : actions/checkout@v4
45
49
- uses : ./
46
50
id : filter
47
51
with :
53
57
test-without-token :
54
58
runs-on : ubuntu-latest
55
59
steps :
56
- - uses : actions/checkout@v3
60
+ - uses : actions/checkout@v4
57
61
- uses : ./
58
62
id : filter
59
63
with :
66
70
test-wd-without-token :
67
71
runs-on : ubuntu-latest
68
72
steps :
69
- - uses : actions/checkout@v3
73
+ - uses : actions/checkout@v4
70
74
with :
71
75
path : somewhere
72
76
- uses : ./somewhere
82
86
test-local-changes :
83
87
runs-on : ubuntu-latest
84
88
steps :
85
- - uses : actions/checkout@v3
89
+ - uses : actions/checkout@v4
86
90
- run : echo "NEW FILE" > local
87
91
- run : git add local
88
92
- uses : ./
@@ -102,7 +106,7 @@ jobs:
102
106
test-change-type :
103
107
runs-on : ubuntu-latest
104
108
steps :
105
- - uses : actions/checkout@v3
109
+ - uses : actions/checkout@v4
106
110
- name : configure GIT user
107
111
run :
git config user.email "[email protected] " && git config user.name "John Doe"
108
112
- name : modify working tree
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " paths-filter" ,
3
3
"version" : " 1.0.0" ,
4
+ "engines" : {
5
+ "node" : " >= 20"
6
+ },
4
7
"private" : true ,
5
8
"description" : " Execute your workflow steps only if relevant files are modified." ,
6
9
"main" : " lib/main.js" ,
You can’t perform that action at this time.
0 commit comments