Skip to content

Commit 63a41c3

Browse files
ci: update
1 parent 07ef30a commit 63a41c3

6 files changed

Lines changed: 124 additions & 53 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ updates:
33
- package-ecosystem: npm
44
directory: "/"
55
schedule:
6-
interval: daily
7-
time: "04:00"
8-
timezone: Europe/Berlin
6+
interval: "weekly"
97
open-pull-requests-limit: 20
108
versioning-strategy: lockfile-only
119
labels:
@@ -17,9 +15,11 @@ updates:
1715
- package-ecosystem: "github-actions"
1816
directory: "/"
1917
schedule:
20-
interval: daily
21-
time: "04:00"
22-
timezone: Europe/Berlin
18+
interval: "weekly"
2319
open-pull-requests-limit: 20
2420
labels:
2521
- dependencies
22+
groups:
23+
dependencies:
24+
patterns:
25+
- "*"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Dependency Review"
1+
name: Review Dependencies
22
on: [pull_request]
33

44
permissions:
@@ -8,7 +8,8 @@ jobs:
88
dependency-review:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: "Checkout Repository"
11+
- name: Git Checkout
1212
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
13-
- name: "Dependency Review"
13+
14+
- name: Review Dependencies
1415
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2

.github/workflows/nodejs.yml

Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: webpack-cli
1+
name: CI
22

33
on:
44
push:
@@ -15,7 +15,7 @@ permissions:
1515

1616
jobs:
1717
lint:
18-
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
18+
name: Lint
1919

2020
runs-on: ${{ matrix.os }}
2121

@@ -30,9 +30,10 @@ jobs:
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

.github/workflows/update-docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Update documentation
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
update-documentation:
10+
name: Update documentation
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
steps:
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Using Node.js v${{ matrix.node-version }}
24+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "npm"
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Create Pull Request
33+
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
34+
with:
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
delete-branch: true
37+
commit-message: |
38+
docs: update
39+
title: |
40+
docs: update
41+
body: |
42+
Update documentation.
43+
44+
This PR was autogenerated.
45+
branch: update-docs

.github/workflows/validate-pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Validate PR
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
commitlint:
11+
name: Lint Commit Messages
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
node-version: [lts/*]
19+
20+
concurrency:
21+
group: commitlint-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Using Node.js v${{ matrix.node-version }}
31+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: "npm"
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Validate PR commits with commitlint
40+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
41+
env:
42+
NODE_PATH: ${{ github.workspace }}/node_modules

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"prebuild": "npm run clean",
2828
"prebuild:ci": "npm run clean && node ./scripts/setup-build.js",
2929
"build": "tsc --build",
30-
"build:ci": "tsc --build",
3130
"watch": "tsc --build --watch",
3231
"lint": "npm run lint:code && npm run lint:spellcheck",
3332
"lint:code": "eslint --cache .",

0 commit comments

Comments
 (0)