Skip to content

Commit 9c8c2ab

Browse files
committed
feat: add rspress to rstest-ecosystem-ci
1 parent dd1608e commit 9c8c2ab

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
options:
2626
- "-"
2727
# - plugins
28-
# - rspress
28+
- rspress
2929
- rslib
3030
- rsbuild
3131
- rsdoctor
@@ -80,8 +80,8 @@ jobs:
8080
# os: ubuntu-latest
8181
# - suite: plugins
8282
# os: ubuntu-latest
83-
# - suite: rspress
84-
# os: ubuntu-latest
83+
- suite: rspress
84+
os: ubuntu-latest
8585
- suite: rsbuild
8686
os: ubuntu-latest
8787
- suite: rslib

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030
options:
3131
- "-"
3232
- rslib
33+
- rspress
3334
- rsbuild
3435
- rsdoctor
3536
suiteRefType:
@@ -75,6 +76,8 @@ jobs:
7576
include:
7677
- suite: rslib
7778
os: ubuntu-latest
79+
- suite: rspress
80+
os: ubuntu-latest
7881
- suite: rsbuild
7982
os: ubuntu-latest
8083
- suite: rsdoctor

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
options:
3737
- "-"
3838
# - plugins
39-
# - rspress
39+
- rspress
4040
- rslib
4141
- rsbuild
4242
- rsdoctor
@@ -84,8 +84,8 @@ jobs:
8484
include:
8585
# - suite: plugins
8686
# os: ubuntu-latest
87-
# - suite: rspress
88-
# os: ubuntu-latest
87+
- suite: rspress
88+
os: ubuntu-latest
8989
- suite: rslib
9090
os: ubuntu-latest
9191
- suite: rsbuild

tests/rstest/rspress.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { RunOptions } from '../../types';
2+
import { runInRepo } from '../../utils';
3+
4+
export async function test(options: RunOptions) {
5+
await runInRepo({
6+
...options,
7+
repo: 'web-infra-dev/rspress',
8+
branch: process.env.RSPRESS ?? 'main',
9+
test: ['test:unit'],
10+
});
11+
}

0 commit comments

Comments
 (0)