Skip to content

Commit 0293d7c

Browse files
committed
fix(rspress): run Rspress suite on macos
1 parent 20881a9 commit 0293d7c

10 files changed

+21
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- suite: rstest
1919
os: ubuntu-latest
2020
- suite: rspress
21-
os: ubuntu-latest
21+
os: macos-latest
2222
- suite: plugins
2323
os: ubuntu-latest
2424
- suite: modernjs
@@ -52,7 +52,7 @@ jobs:
5252
- suite: rstest
5353
os: ubuntu-latest
5454
- suite: rspress
55-
os: ubuntu-latest
55+
os: macos-latest
5656
- suite: rsdoctor
5757
os: ubuntu-latest
5858
fail-fast: false
@@ -188,7 +188,7 @@ jobs:
188188
# - suite: nx
189189
# os: ubuntu-22.04
190190
- suite: rspress
191-
os: ubuntu-22.04
191+
os: macos-latest
192192
- suite: rsbuild
193193
os: ubuntu-22.04
194194
- suite: examples

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252

5353
jobs:
5454
execute-selected-suite:
55-
runs-on: ubuntu-latest
55+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
5656
if: "inputs.suite != '-'"
5757
steps:
5858
- uses: actions/checkout@v5
@@ -80,7 +80,7 @@ jobs:
8080
- suite: rstest
8181
os: ubuntu-latest
8282
- suite: rspress
83-
os: ubuntu-latest
83+
os: macos-latest
8484
- suite: plugins
8585
os: ubuntu-latest
8686
- suite: modernjs

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252

5353
jobs:
5454
execute-selected-suite:
55-
runs-on: ubuntu-latest
55+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
5656
if: "inputs.suite != '-'"
5757
steps:
5858
- uses: actions/checkout@v5
@@ -80,7 +80,7 @@ jobs:
8080
- suite: rstest
8181
os: ubuntu-latest
8282
- suite: rspress
83-
os: ubuntu-latest
83+
os: macos-latest
8484
- suite: plugins
8585
os: ubuntu-latest
8686
- suite: modernjs

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ on:
5959

6060
jobs:
6161
execute-selected-suite:
62-
runs-on: ubuntu-latest
62+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
6363
if: "inputs.suite != '-'"
6464
steps:
6565
- uses: actions/checkout@v5
@@ -87,7 +87,7 @@ jobs:
8787
- suite: rstest
8888
os: ubuntu-latest
8989
- suite: rspress
90-
os: ubuntu-latest
90+
os: macos-latest
9191
- suite: plugins
9292
os: ubuntu-latest
9393
- suite: modernjs

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252

5353
jobs:
5454
execute-selected-suite:
55-
runs-on: ubuntu-latest
55+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
5656
if: "inputs.suite != '-'"
5757
steps:
5858
- uses: actions/checkout@v5
@@ -82,7 +82,7 @@ jobs:
8282
- suite: rstest
8383
os: ubuntu-latest
8484
- suite: rspress
85-
os: ubuntu-latest
85+
os: macos-latest
8686
- suite: rsdoctor
8787
os: ubuntu-latest
8888
fail-fast: false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252

5353
jobs:
5454
execute-selected-suite:
55-
runs-on: ubuntu-latest
55+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
5656
if: "inputs.suite != '-'"
5757
steps:
5858
- uses: actions/checkout@v5
@@ -82,7 +82,7 @@ jobs:
8282
- suite: rstest
8383
os: ubuntu-latest
8484
- suite: rspress
85-
os: ubuntu-latest
85+
os: macos-latest
8686
- suite: rsdoctor
8787
os: ubuntu-latest
8888
fail-fast: false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ on:
5858

5959
jobs:
6060
execute-selected-suite:
61-
runs-on: ubuntu-latest
61+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-latest' }}
6262
if: "inputs.suite != '-'"
6363
steps:
6464
- uses: actions/checkout@v5
@@ -88,7 +88,7 @@ jobs:
8888
- suite: rstest
8989
os: ubuntu-latest
9090
- suite: rspress
91-
os: ubuntu-latest
91+
os: macos-latest
9292
- suite: rsdoctor
9393
os: ubuntu-latest
9494
fail-fast: false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
ref: ${{ inputs.commitSHA }}
7171

7272
execute-selected-suite:
73-
runs-on: ubuntu-22.04
73+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-22.04' }}
7474
needs: [get-runner-labels, prepare-binding]
7575
if: "inputs.suite != '-'"
7676
steps:
@@ -104,7 +104,7 @@ jobs:
104104
- suite: rsdoctor
105105
os: ubuntu-22.04
106106
- suite: rspress
107-
os: ubuntu-22.04
107+
os: macos-latest
108108
- suite: rslib
109109
os: ubuntu-22.04
110110
- suite: rstest

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
ref: ${{ inputs.branchName }}
7575

7676
execute-selected-suite:
77-
runs-on: ubuntu-22.04
77+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-22.04' }}
7878
needs: prepare-binding
7979
if: "inputs.suite != '-'"
8080
steps:
@@ -104,7 +104,7 @@ jobs:
104104
# - suite: nx
105105
# os: ubuntu-22.04
106106
- suite: rspress
107-
os: ubuntu-22.04
107+
os: macos-latest
108108
- suite: rslib
109109
os: ubuntu-22.04
110110
- suite: rstest

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
execute-selected-suite:
8282
needs: prepare-binding
83-
runs-on: ubuntu-22.04
83+
runs-on: ${{ inputs.suite == 'rspress' && 'macos-latest' || 'ubuntu-22.04' }}
8484
if: "inputs.suite != '-'"
8585
steps:
8686
- uses: actions/checkout@v4
@@ -109,7 +109,7 @@ jobs:
109109
# - suite: nx
110110
# os: ubuntu-22.04
111111
- suite: rspress
112-
os: ubuntu-22.04
112+
os: macos-latest
113113
- suite: rslib
114114
os: ubuntu-22.04
115115
- suite: rstest

0 commit comments

Comments
 (0)