diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfcb6ae..f19ac2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,8 @@ jobs: os: ubuntu-latest - suite: rsdoctor os: ubuntu-latest + - suite: rspress + os: ubuntu-latest fail-fast: false runs-on: ${{ matrix.os }} name: rstest (${{ matrix.suite }}) diff --git a/.github/workflows/rstest-ecosystem-ci-from-commit.yml b/.github/workflows/rstest-ecosystem-ci-from-commit.yml index 5e84f72..3dd3f03 100644 --- a/.github/workflows/rstest-ecosystem-ci-from-commit.yml +++ b/.github/workflows/rstest-ecosystem-ci-from-commit.yml @@ -25,7 +25,7 @@ on: options: - "-" # - plugins - # - rspress + - rspress - rslib - rsbuild - rsdoctor @@ -80,8 +80,8 @@ jobs: # os: ubuntu-latest # - suite: plugins # os: ubuntu-latest - # - suite: rspress - # os: ubuntu-latest + - suite: rspress + os: ubuntu-latest - suite: rsbuild os: ubuntu-latest - suite: rslib diff --git a/.github/workflows/rstest-ecosystem-ci-from-pr.yml b/.github/workflows/rstest-ecosystem-ci-from-pr.yml index 96ab8fd..41b80ae 100644 --- a/.github/workflows/rstest-ecosystem-ci-from-pr.yml +++ b/.github/workflows/rstest-ecosystem-ci-from-pr.yml @@ -30,6 +30,7 @@ on: options: - "-" - rslib + - rspress - rsbuild - rsdoctor suiteRefType: @@ -75,6 +76,8 @@ jobs: include: - suite: rslib os: ubuntu-latest + - suite: rspress + os: ubuntu-latest - suite: rsbuild os: ubuntu-latest - suite: rsdoctor diff --git a/.github/workflows/rstest-ecosystem-ci-selected.yml b/.github/workflows/rstest-ecosystem-ci-selected.yml index 3ddec88..891291e 100644 --- a/.github/workflows/rstest-ecosystem-ci-selected.yml +++ b/.github/workflows/rstest-ecosystem-ci-selected.yml @@ -36,7 +36,7 @@ on: options: - "-" # - plugins - # - rspress + - rspress - rslib - rsbuild - rsdoctor @@ -84,8 +84,8 @@ jobs: include: # - suite: plugins # os: ubuntu-latest - # - suite: rspress - # os: ubuntu-latest + - suite: rspress + os: ubuntu-latest - suite: rslib os: ubuntu-latest - suite: rsbuild diff --git a/tests/rstest/rspress.ts b/tests/rstest/rspress.ts new file mode 100644 index 0000000..290ca44 --- /dev/null +++ b/tests/rstest/rspress.ts @@ -0,0 +1,11 @@ +import type { RunOptions } from '../../types'; +import { runInRepo } from '../../utils'; + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'web-infra-dev/rspress', + branch: process.env.RSPRESS ?? 'main', + test: ['test:unit'], + }); +}