File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
node : [14.x, 16.x, 18.x, 19.x]
15
- os : [ubuntu-latest, macos-latest , windows-latest]
15
+ os : [ubuntu-latest, macos-13 , windows-latest]
16
16
runs-on : ${{ matrix.os }}
17
17
steps :
18
18
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ const api = [
11
11
'chown' ,
12
12
'close' ,
13
13
'copyFile' ,
14
+ 'cp' ,
14
15
'fchmod' ,
15
16
'fchown' ,
16
17
'fdatasync' ,
17
18
'fstat' ,
18
19
'fsync' ,
19
20
'ftruncate' ,
20
21
'futimes' ,
22
+ 'glob' ,
21
23
'lchmod' ,
22
24
'lchown' ,
25
+ 'lutimes' ,
23
26
'link' ,
24
27
'lstat' ,
25
28
'mkdir' ,
@@ -34,6 +37,7 @@ const api = [
34
37
'rm' ,
35
38
'rmdir' ,
36
39
'stat' ,
40
+ 'statfs' ,
37
41
'symlink' ,
38
42
'truncate' ,
39
43
'unlink' ,
@@ -42,6 +46,8 @@ const api = [
42
46
] . filter ( key => {
43
47
// Some commands are not available on some systems. Ex:
44
48
// fs.cp was added in Node.js v16.7.0
49
+ // fs.statfs was added in Node v19.6.0, v18.15.0
50
+ // fs.glob was added in Node.js v22.0.0
45
51
// fs.lchown is not available on at least some Linux
46
52
return typeof fs [ key ] === 'function'
47
53
} )
You can’t perform that action at this time.
0 commit comments