File tree Expand file tree Collapse file tree 2 files changed +28
-23
lines changed Expand file tree Collapse file tree 2 files changed +28
-23
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
name : Unit tests
3
3
on :
4
- push :
5
- paths-ignore :
6
- - ' **/*.md'
7
- - ' **/*.asciidoc'
8
- - ' **/*.txt'
9
- - ' docs/**'
10
- - ' .ci/**'
11
- - ' .buildkite/**'
12
- - ' scripts/**'
13
- - ' catalog-info.yaml'
14
- pull_request :
15
- paths-ignore :
16
- - ' **/*.md'
17
- - ' **/*.asciidoc'
18
- - ' **/*.txt'
19
- - ' docs/**'
20
- - ' .ci/**'
21
- - ' .buildkite/**'
22
- - ' scripts/**'
23
- - ' catalog-info.yaml'
4
+ pull_request : {}
24
5
25
6
jobs :
7
+ paths-filter :
8
+ name : Detect files changed
9
+ runs-on : ubuntu-latest
10
+ outputs :
11
+ skip : ' ${{ steps.changes.outputs.skip }}'
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : dorny/paths-filter/@v2.11.1
15
+ id : changes
16
+ with :
17
+ filters : |
18
+ skip:
19
+ - '**/*.md'
20
+ - '**/*.asciidoc'
21
+ - '**/*.txt'
22
+ - 'docs/**'
23
+ - '.ci/**'
24
+ - '.buildkite/**'
25
+ - 'scripts/**'
26
+ - 'catalog-info.yaml'
27
+
26
28
test :
27
29
name : Test
28
30
runs-on : ${{ matrix.os }}
31
+ needs : paths-filter
32
+ # only run if files not in `skip` filter were changed
33
+ if : needs.paths-filter.outputs.skip != 'true'
29
34
30
35
strategy :
31
36
matrix :
32
37
node-version : [16.x, 18.x, 20.x]
33
38
os : [ubuntu-latest, windows-latest, macOS-latest]
34
39
35
40
steps :
36
- - uses : actions/checkout@v3
41
+ - uses : actions/checkout@v4
37
42
38
43
- name : Use Node.js ${{ matrix.node-version }}
39
44
uses : actions/setup-node@v3
61
66
node-version : [20.x]
62
67
63
68
steps :
64
- - uses : actions/checkout@v3
69
+ - uses : actions/checkout@v4
65
70
66
71
- name : Use Node.js ${{ matrix.node-version }}
67
72
uses : actions/setup-node@v3
Original file line number Diff line number Diff line change 12
12
"build" : " tsc" ,
13
13
"clean-build" : " rimraf ./lib && mkdir lib" ,
14
14
"prepublishOnly" : " npm run build" ,
15
- "test" : " npm run build && npm run lint && tap test/unit/{*,**/*}.test.ts && npm run license-checker " ,
15
+ "test" : " npm run build && npm run lint && tap test/unit/{*,**/*}.test.ts" ,
16
16
"test:coverage-100" : " npm run build && tap test/unit/{*,**/*}.test.ts --coverage --100" ,
17
17
"test:coverage-report" : " npm run build && tap test/unit/{*,**/*}.test.ts --coverage && nyc report --reporter=text-lcov > coverage.lcov" ,
18
18
"test:coverage-ui" : " npm run build && tap test/unit/{*,**/*}.test.ts --coverage --coverage-report=html" ,
You can’t perform that action at this time.
0 commit comments