Skip to content

Commit 4692f5e

Browse files
committed
feat: add rspress
1 parent f52c73c commit 4692f5e

27 files changed

Lines changed: 481 additions & 24 deletions
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Build Rspress"
2+
description: "Checkout, build rspress"
3+
inputs:
4+
repository:
5+
description: "The rspress repository to use"
6+
required: true
7+
default: "web-infra-dev/rspress"
8+
path:
9+
description: "Destination path to the rspress repository"
10+
required: true
11+
default: "workspace/rspress"
12+
ref:
13+
description: "The branch, tag or SHA to checkout"
14+
required: true
15+
default: "main"
16+
outputs:
17+
artifact-name:
18+
description: "The name of the uploaded artifact"
19+
runs:
20+
using: composite
21+
steps:
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
- shell: bash
26+
name: Install package manager
27+
run: |
28+
npm install -g corepack@latest --force
29+
echo "Corepack version: $(corepack --version)"
30+
corepack enable
31+
32+
- name: Checkout Rspress repo
33+
uses: actions/checkout@v5
34+
with:
35+
repository: ${{ inputs.repository }}
36+
path: ${{ inputs.path }}
37+
ref: ${{ inputs.ref }}
38+
- name: Build Rspress
39+
shell: bash
40+
run: |
41+
cd ${{ inputs.path }}
42+
pnpm i

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ on:
1919
type: string
2020
default: "web-infra-dev/rsbuild"
2121
suite:
22-
description: "testsuite to run. runs all testsuits when `-`."
22+
description: "testsuite to run. runs all test suites when `-`."
2323
required: false
2424
type: choice
2525
options:
2626
- "-"
2727
- modernjs
2828
- plugins
2929
- rspress
30-
-
30+
-
3131
- examples
3232
suiteRefType:
3333
description: "type of suite ref to use"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ on:
2424
type: string
2525
default: "web-infra-dev/rsbuild"
2626
suite:
27-
description: "testsuite to run. runs all testsuits when `-`."
27+
description: "testsuite to run. runs all test suites when `-`."
2828
required: false
2929
type: choice
3030
options:
3131
- "-"
3232
- modernjs
3333
- plugins
3434
- rspress
35-
-
35+
-
3636
- examples
3737
suiteRefType:
3838
description: "type of suite ref to use"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
type: string
3131
default: "web-infra-dev/rsbuild"
3232
suite:
33-
description: "testsuite to run. runs all testsuits when `-`."
33+
description: "testsuite to run. runs all test suites when `-`."
3434
required: true
3535
type: choice
3636
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
type: string
2020
default: "web-infra-dev/rsdoctor"
2121
suite:
22-
description: "testsuite to run. runs all testsuits when `-`."
22+
description: "testsuite to run. runs all test suites when `-`."
2323
required: false
2424
type: choice
2525
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
type: string
2525
default: "web-infra-dev/rsdoctor"
2626
suite:
27-
description: "testsuite to run. runs all testsuits when `-`."
27+
description: "testsuite to run. runs all test suites when `-`."
2828
required: false
2929
type: choice
3030
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
type: string
3131
default: "web-infra-dev/rsdoctor"
3232
suite:
33-
description: "testsuite to run. runs all testsuits when `-`."
33+
description: "testsuite to run. runs all test suites when `-`."
3434
required: true
3535
type: choice
3636
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
type: string
2020
default: "web-infra-dev/rslib"
2121
suite:
22-
description: "testsuite to run. runs all testsuits when `-`."
22+
description: "testsuite to run. runs all test suites when `-`."
2323
required: false
2424
type: choice
2525
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
type: string
2525
default: "web-infra-dev/rslib"
2626
suite:
27-
description: "testsuite to run. runs all testsuits when `-`."
27+
description: "testsuite to run. runs all test suites when `-`."
2828
required: false
2929
type: choice
3030
options:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
type: string
3131
default: "web-infra-dev/rslib"
3232
suite:
33-
description: "testsuite to run. runs all testsuits when `-`."
33+
description: "testsuite to run. runs all test suites when `-`."
3434
required: true
3535
type: choice
3636
options:

0 commit comments

Comments
 (0)