Skip to content

Commit 20881a9

Browse files
committed
feat: support rspack
1 parent 4d8b3f4 commit 20881a9

File tree

8 files changed

+2133
-33
lines changed

8 files changed

+2133
-33
lines changed

.github/workflows/rspack-ecosystem-ci-from-commit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ on:
2424
type: choice
2525
options:
2626
- "-"
27+
- _selftest
2728
- modernjs
2829
# - nx
2930
- rspress
3031
- rslib
3132
- rstest
3233
- rsbuild
34+
- rsdoctor
3335
- examples
3436
- devserver
37+
- nuxt
3538
- plugin
39+
- lynx-stack
3640
suiteRefType:
3741
description: "type of suite ref to use"
3842
required: true
@@ -115,6 +119,8 @@ jobs:
115119
os: ubuntu-22.04
116120
- suite: plugin
117121
os: ubuntu-22.04
122+
- suite: lynx-stack
123+
os: ubuntu-22.04
118124
fail-fast: false
119125
runs-on: ${{ matrix.os }}
120126
name: execute-all (${{ matrix.suite }})

.github/workflows/rspack-ecosystem-ci-from-pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ on:
3535
- rsbuild
3636
- rslib
3737
- rstest
38+
- rsdoctor
3839
- examples
3940
- devserver
41+
- nuxt
4042
- plugin
43+
- lynx-stack
4144
suiteRefType:
4245
description: "type of suite ref to use"
4346
required: true
@@ -118,6 +121,8 @@ jobs:
118121
os: ubuntu-22.04
119122
- suite: plugin
120123
os: ubuntu-22.04
124+
- suite: lynx-stack
125+
os: ubuntu-22.04
121126
fail-fast: false
122127
runs-on: ${{ matrix.os }}
123128
name: execute-all (${{ matrix.suite }})

.github/workflows/rspack-ecosystem-ci-selected.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ on:
4545
- examples
4646
- devserver
4747
- plugin
48+
- lynx-stack
4849
suiteRefType:
4950
description: "type of suite ref to use"
5051
required: true
@@ -64,7 +65,6 @@ on:
6465
jobs:
6566
get-runner-labels:
6667
name: Get Runner Labels
67-
needs: create-comment
6868
uses: ./.github/workflows/get-runner-labels.yml
6969

7070
prepare-binding:
@@ -97,19 +97,6 @@ jobs:
9797
--stack rspack
9898
--suite-${{ inputs.suiteRefType }} ${{ inputs.suiteRef }}
9999
${{ inputs.suite }}
100-
- if: always()
101-
run: pnpm tsx discord-webhook.ts
102-
env:
103-
WORKFLOW_NAME: ci-selected-one
104-
REF_TYPE: ${{ inputs.refType }}
105-
REF: ${{ inputs.ref }}
106-
REPO: ${{ inputs.repo }}
107-
SUITE: ${{ inputs.suite }}
108-
SUITE_REF_TYPE: ${{ inputs.suiteRefType }}
109-
SUITE_REF: ${{ inputs.suiteRef }}
110-
STATUS: ${{ job.status }}
111-
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
112-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113100
114101
execute-all:
115102
needs: [get-runner-labels, prepare-binding]
@@ -139,6 +126,8 @@ jobs:
139126
os: ubuntu-22.04
140127
- suite: plugin
141128
os: ubuntu-22.04
129+
- suite: lynx-stack
130+
os: ubuntu-22.04
142131
fail-fast: false
143132
runs-on: ${{ matrix.os }}
144133
name: execute-all (${{ matrix.suite }})
@@ -155,16 +144,3 @@ jobs:
155144
run-suites
156145
--stack rspack
157146
${{ matrix.suite }}
158-
- if: always()
159-
run: pnpm tsx discord-webhook.ts
160-
env:
161-
WORKFLOW_NAME: ci-selected-all
162-
REF_TYPE: ${{ inputs.refType }}
163-
REF: ${{ inputs.ref }}
164-
REPO: ${{ inputs.repo }}
165-
SUITE: ${{ matrix.suite }}
166-
SUITE_REF_TYPE: ${{ inputs.suiteRefType }}
167-
SUITE_REF: ${{ inputs.suiteRef }}
168-
STATUS: ${{ job.status }}
169-
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
170-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Commits follow short, imperative subjects (≤72 chars), elaborating in the body
1717

1818
## Environment & Tooling Notes
1919
The runner exports `ECOSYSTEM_CI`, `TURBO_FORCE`, and memory-safe `NODE_OPTIONS`; avoid overriding them unless a suite explicitly requires it. Keep `workspace/` untracked, and never commit runtime artifacts. Remember that network-dependent steps may need explicit approval in restricted environments.
20+
`verdaccio.yaml` lives at repo root for rspack flows that publish locally; it writes under `workspace/`.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The repositories are checked out into `workspace` subdirectory as shallow clones
3636

3737
- `pnpm test --stack rspack --release nightly <suite>`: run a nightly release of the selected stack
3838
- `pnpm test --stack rsbuild --branch main --suite-branch update-rsbuild <suite>`: use `update-rsbuild` branch for the suite to test `main`
39+
- `pnpm test --stack rspack modernjs` (rspack suites include modernjs, rspress, rsbuild, rslib, rstest, rsdoctor, examples, devserver, nuxt, plugin, lynx-stack, _selftest)
3940

4041
# How to add a new integration test
4142

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"semver": "^7.3.8",
4343
"simple-git-hooks": "^2.8.1",
4444
"tsx": "^4.19.2",
45-
"typescript": "^4.9.5"
45+
"typescript": "^4.9.5",
46+
"verdaccio": "^6.1.5"
4647
},
4748
"packageManager": "pnpm@10.19.0",
4849
"engines": {

0 commit comments

Comments
 (0)