1- name : webpack-cli
1+ name : CI
22
33on :
44 push :
@@ -15,7 +15,7 @@ permissions:
1515
1616jobs :
1717 lint :
18- name : Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
18+ name : Lint
1919
2020 runs-on : ${{ matrix.os }}
2121
3030 webpack-version : [latest]
3131
3232 steps :
33- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33+ - name : Checkout code
34+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3435
35- - name : Using Node v${{ matrix.node-version }}
36+ - name : Setup Node.js v${{ matrix.node-version }}
3637 uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3738 with :
3839 node-version : ${{ matrix.node-version }}
@@ -47,46 +48,48 @@ jobs:
4748 - name : Lint
4849 run : npm run lint
4950
50- build :
51- name : Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }})
51+ test :
52+ name : Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }}
5253
5354 runs-on : ${{ matrix.os }}
5455
5556 concurrency :
56- group : build -${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ matrix.dev-server-version }}-${{ matrix.shard }}-${{ github.ref }}
57+ group : test -${{ matrix.os }}-v${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ matrix.dev-server-version }}-${{ github.ref }}
5758 cancel-in-progress : true
5859
5960 strategy :
61+ fail-fast : false
6062 matrix :
6163 os : [ubuntu-latest, windows-latest, macos-latest]
6264 node-version : [18.x, 20.x, 22.x, 24.x]
63- shard : ["1/4", "2/4", "3/4", "4/4"]
6465 webpack-version : [latest]
6566 dev-server-version : [latest]
6667
6768 steps :
68- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
69+ - name : Checkout code
70+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6971 with :
7072 fetch-depth : 0
7173
72- - name : Using Node v${{ matrix.node-version }}
74+ - name : Using Node.js v${{ matrix.node-version }}
7375 uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
7476 with :
7577 node-version : ${{ matrix.node-version }}
7678 cache : " npm"
7779
78- - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4.2.0
80+ - name : Install pnpm
81+ uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4.2.0
7982 with :
80- version : 9
83+ version : 10
8184
8285 - name : Install dependencies
8386 run : npm ci --ignore-scripts
8487
8588 - name : Prepare environment for tests
86- run : npm run build:ci
89+ run : npm run build
8790
8891 - name : Run tests and generate coverage
89- run : npm run test:coverage -- --ci --shard=${{ matrix.shard }}
92+ run : npm run test:coverage -- --ci
9093
9194 - name : Upload coverage to Codecov
9295 uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
@@ -95,21 +98,26 @@ jobs:
9598 verbose : true
9699
97100 smoketests :
98- name : Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }}
99- runs-on : ubuntu-latest
101+ name : Smoketests
102+
103+ runs-on : ${{ matrix.os }}
104+
100105 concurrency :
101106 group : smoketests-${{ github.ref }}
102107 cancel-in-progress : true
108+
103109 strategy :
104110 matrix :
105111 os : [ubuntu-latest]
106112 node-version : [lts/*]
113+
107114 steps :
108- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
115+ - name : Checkout code
116+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
109117 with :
110118 fetch-depth : 0
111119
112- - name : Using Node v${{ matrix.node-version }}
120+ - name : Using Node.js v${{ matrix.node-version }}
113121 uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
114122 with :
115123 node-version : ${{ matrix.node-version }}
@@ -119,31 +127,7 @@ jobs:
119127 run : npm ci
120128
121129 - name : Prepare environment for tests
122- run : npm run build:ci
130+ run : npm run build
123131
124132 - name : Run smoketests
125133 run : npm run test:smoketests
126-
127- commitlint :
128- name : Lint Commit Messages
129- runs-on : ubuntu-latest
130- concurrency :
131- group : commitlint-${{ github.ref }}
132- cancel-in-progress : true
133- steps :
134- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
135- with :
136- fetch-depth : 0
137-
138- - uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
139- with :
140- node-version : " lts/*"
141- cache : " npm"
142-
143- - run : npm ci
144-
145- - name : Validate PR commits with commitlint
146- if : github.event_name == 'pull_request'
147- run : npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
148- env :
149- NODE_PATH : ${{ github.workspace }}/node_modules
0 commit comments