diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89acbc15..f35101d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false @@ -59,6 +61,8 @@ jobs: os: ubuntu-latest - suite: modernjs os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false @@ -96,6 +100,8 @@ jobs: os: ubuntu-latest - suite: modernjs os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: rstest (${{ matrix.suite }}) diff --git a/.github/workflows/rsbuild-ecosystem-ci-from-commit.yml b/.github/workflows/rsbuild-ecosystem-ci-from-commit.yml index 58ee2d1f..09252b95 100644 --- a/.github/workflows/rsbuild-ecosystem-ci-from-commit.yml +++ b/.github/workflows/rsbuild-ecosystem-ci-from-commit.yml @@ -30,6 +30,7 @@ on: - plugins - modernjs - examples + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -104,6 +105,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rsbuild-ecosystem-ci-from-pr.yml b/.github/workflows/rsbuild-ecosystem-ci-from-pr.yml index 96e914f5..6b86a557 100644 --- a/.github/workflows/rsbuild-ecosystem-ci-from-pr.yml +++ b/.github/workflows/rsbuild-ecosystem-ci-from-pr.yml @@ -35,6 +35,7 @@ on: - plugins - modernjs - examples + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -104,6 +105,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rsbuild-ecosystem-ci-selected.yml b/.github/workflows/rsbuild-ecosystem-ci-selected.yml index d1cd780c..6e12aee9 100644 --- a/.github/workflows/rsbuild-ecosystem-ci-selected.yml +++ b/.github/workflows/rsbuild-ecosystem-ci-selected.yml @@ -41,6 +41,7 @@ on: - plugins - modernjs - examples + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -110,6 +111,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rslib-ecosystem-ci-from-commit.yml b/.github/workflows/rslib-ecosystem-ci-from-commit.yml index d3b4c8f2..46199026 100644 --- a/.github/workflows/rslib-ecosystem-ci-from-commit.yml +++ b/.github/workflows/rslib-ecosystem-ci-from-commit.yml @@ -30,6 +30,7 @@ on: - rspress - rsdoctor - modernjs + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -104,6 +105,8 @@ jobs: os: ubuntu-latest - suite: modernjs os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rslib-ecosystem-ci-from-pr.yml b/.github/workflows/rslib-ecosystem-ci-from-pr.yml index e2c69160..8f8732f7 100644 --- a/.github/workflows/rslib-ecosystem-ci-from-pr.yml +++ b/.github/workflows/rslib-ecosystem-ci-from-pr.yml @@ -35,6 +35,7 @@ on: - rspress - rsdoctor - modernjs + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -104,6 +105,8 @@ jobs: os: ubuntu-latest - suite: modernjs os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rslib-ecosystem-ci-selected.yml b/.github/workflows/rslib-ecosystem-ci-selected.yml index 0bd1b24e..a78f1992 100644 --- a/.github/workflows/rslib-ecosystem-ci-selected.yml +++ b/.github/workflows/rslib-ecosystem-ci-selected.yml @@ -41,6 +41,7 @@ on: - rspress - rsdoctor - modernjs + - rstack-cli - lynx-stack suiteRefType: description: 'type of suite ref to use' @@ -110,6 +111,8 @@ jobs: os: ubuntu-latest - suite: modernjs os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest - suite: lynx-stack os: ubuntu-latest fail-fast: false diff --git a/.github/workflows/rspress-ecosystem-ci-from-commit.yml b/.github/workflows/rspress-ecosystem-ci-from-commit.yml index 64433265..42eb2376 100644 --- a/.github/workflows/rspress-ecosystem-ci-from-commit.yml +++ b/.github/workflows/rspress-ecosystem-ci-from-commit.yml @@ -28,6 +28,7 @@ on: - rslib - rspack - rstest + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -100,6 +101,8 @@ jobs: os: ubuntu-latest - suite: rstest os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/.github/workflows/rspress-ecosystem-ci-from-pr.yml b/.github/workflows/rspress-ecosystem-ci-from-pr.yml index 7397fa0f..646b88c5 100644 --- a/.github/workflows/rspress-ecosystem-ci-from-pr.yml +++ b/.github/workflows/rspress-ecosystem-ci-from-pr.yml @@ -33,6 +33,7 @@ on: - rslib - rspack - rstest + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -97,6 +98,8 @@ jobs: os: ubuntu-latest - suite: rstest os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/.github/workflows/rspress-ecosystem-ci-selected.yml b/.github/workflows/rspress-ecosystem-ci-selected.yml index ac68a982..a0ad2312 100644 --- a/.github/workflows/rspress-ecosystem-ci-selected.yml +++ b/.github/workflows/rspress-ecosystem-ci-selected.yml @@ -39,6 +39,7 @@ on: - rslib - rspack - rstest + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -103,6 +104,8 @@ jobs: os: ubuntu-latest - suite: rstest os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/.github/workflows/rstest-ecosystem-ci-from-commit.yml b/.github/workflows/rstest-ecosystem-ci-from-commit.yml index b11391c5..9f8975d8 100644 --- a/.github/workflows/rstest-ecosystem-ci-from-commit.yml +++ b/.github/workflows/rstest-ecosystem-ci-from-commit.yml @@ -31,6 +31,7 @@ on: - rsdoctor - modernjs - examples + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -106,6 +107,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/.github/workflows/rstest-ecosystem-ci-from-pr.yml b/.github/workflows/rstest-ecosystem-ci-from-pr.yml index 8ed4a7f9..610af8dc 100644 --- a/.github/workflows/rstest-ecosystem-ci-from-pr.yml +++ b/.github/workflows/rstest-ecosystem-ci-from-pr.yml @@ -35,6 +35,7 @@ on: - rsdoctor - modernjs - examples + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -103,6 +104,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/.github/workflows/rstest-ecosystem-ci-selected.yml b/.github/workflows/rstest-ecosystem-ci-selected.yml index e555c2f9..1f07c2ae 100644 --- a/.github/workflows/rstest-ecosystem-ci-selected.yml +++ b/.github/workflows/rstest-ecosystem-ci-selected.yml @@ -42,6 +42,7 @@ on: - rsdoctor - modernjs - examples + - rstack-cli suiteRefType: description: 'type of suite ref to use' required: true @@ -112,6 +113,8 @@ jobs: os: ubuntu-latest - suite: examples os: ubuntu-latest + - suite: rstack-cli + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: execute-all (${{ matrix.suite }}) diff --git a/tests/rsbuild/rstack-cli.ts b/tests/rsbuild/rstack-cli.ts new file mode 100644 index 00000000..25e4324b --- /dev/null +++ b/tests/rsbuild/rstack-cli.ts @@ -0,0 +1 @@ +export { test } from '../shared/rstack-cli'; diff --git a/tests/rslib/rstack-cli.ts b/tests/rslib/rstack-cli.ts new file mode 100644 index 00000000..25e4324b --- /dev/null +++ b/tests/rslib/rstack-cli.ts @@ -0,0 +1 @@ +export { test } from '../shared/rstack-cli'; diff --git a/tests/rspress/rstack-cli.ts b/tests/rspress/rstack-cli.ts new file mode 100644 index 00000000..8823892f --- /dev/null +++ b/tests/rspress/rstack-cli.ts @@ -0,0 +1,15 @@ +import type { RunOptions } from '../../types'; +import { cd, runInRepo } from '../../utils'; + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'rstackjs/rstack-cli', + branch: process.env.RSTACK_CLI_REF ?? 'main', + build: 'node --run build', + beforeTest: async () => { + cd('./website'); + }, + test: ['build'], + }); +} diff --git a/tests/rstest/rstack-cli.ts b/tests/rstest/rstack-cli.ts new file mode 100644 index 00000000..25e4324b --- /dev/null +++ b/tests/rstest/rstack-cli.ts @@ -0,0 +1 @@ +export { test } from '../shared/rstack-cli'; diff --git a/tests/shared/rstack-cli.ts b/tests/shared/rstack-cli.ts new file mode 100644 index 00000000..2b673dbf --- /dev/null +++ b/tests/shared/rstack-cli.ts @@ -0,0 +1,13 @@ +import type { RunOptions } from '../../types'; +import { runInRepo } from '../../utils'; + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'rstackjs/rstack-cli', + branch: process.env.RSTACK_CLI_REF ?? 'main', + build: 'node --run build', + beforeTest: 'pnpm --filter rstack build:native:ci', + test: ['test'], + }); +}