12
12
jobs :
13
13
lint :
14
14
runs-on : ubuntu-latest
15
- strategy :
16
- matrix :
17
- node-version : [20.x]
18
15
19
16
steps :
20
17
- uses : actions/checkout@v4
21
- - name : Use Node.js ${{ matrix.node-version }}
18
+ - name : Use Node.js
22
19
uses : actions/setup-node@v4
23
20
with :
24
- node-version : ${{ matrix.node-version }}
21
+ node-version : 22.x
25
22
- name : Install dependencies
26
23
run : yarn install --immutable
27
24
- name : Run lint
28
25
run : yarn lint
29
26
30
- test :
31
- runs-on : ${{ matrix.os }}
27
+ test-cli-core :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - name : Use Node.js
32
+ uses : actions/setup-node@v4
33
+ with :
34
+ node-version : 22.x
35
+ - name : Install dependencies
36
+ run : yarn install --immutable
37
+ - name : Run tests for cli-core
38
+ run : yarn test run --project=@tsed/cli-core
32
39
33
- strategy :
34
- matrix :
35
- os : [ubuntu-latest, windows-latest]
36
- node-version : [20.x]
37
- exclude :
38
- # - os: macos-latest
39
- # node-version: 12.x
40
- # - os: macos-latest
41
- # node-version: 15.x
42
- # - os: windows-latest
43
- # node-version: 12.x
44
- - os : windows-latest
45
- node-version : 20.x
40
+ test-cli :
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - name : Use Node.js
45
+ uses : actions/setup-node@v4
46
+ with :
47
+ node-version : 22.x
48
+ - name : Install dependencies
49
+ run : yarn install --immutable
50
+ - name : Run tests for cli
51
+ run : yarn test run --project=@tsed/cli
46
52
53
+ test-plugins :
54
+ runs-on : " ubuntu-latest"
47
55
steps :
48
56
- uses : actions/checkout@v4
49
- - name : Use Node.js ${{ matrix.node-version }}
57
+ - name : Use Node.js
50
58
uses : actions/setup-node@v4
51
59
with :
52
- node-version : ${{ matrix.node-version }}
60
+ node-version : 22.x
53
61
- name : Install dependencies
54
62
run : yarn install --immutable
55
- - name : Run test
56
- run : yarn test
63
+ - name : Run tests for other packages
64
+ run : yarn test --project="@tsed/cli-plugin-*"
57
65
58
66
build :
59
67
runs-on : ubuntu-latest
@@ -77,19 +85,15 @@ jobs:
77
85
78
86
deploy-packages :
79
87
runs-on : ubuntu-latest
80
- needs : [lint, test, build]
88
+ needs : [lint, test-cli-core, test-cli, test-plugins , build]
81
89
if : ${{ github.event_name != 'pull_request' && (contains(github.ref, 'master') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }}
82
90
83
- strategy :
84
- matrix :
85
- node-version : [20.x]
86
-
87
91
steps :
88
92
- uses : actions/checkout@v4
89
- - name : Use Node.js ${{ matrix.node-version }}
93
+ - name : Use Node.js
90
94
uses : actions/setup-node@v4
91
95
with :
92
- node-version : ${{ matrix.node-version }}
96
+ node-version : 22.x
93
97
- name : Install dependencies
94
98
run : yarn install --frozen-lockfile --network-timeout 500000
95
99
- name : Release packages
0 commit comments