Skip to content

Commit

Permalink
feat: add rspress test (#14)
Browse files Browse the repository at this point in the history
* feat: add rspress test

* chore: yml
  • Loading branch information
sanyuan0704 authored Aug 30, 2023
1 parent 52ad8d1 commit de2143c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- "-"
- modernjs
- nx
- rspress
jobs:
init:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
suite:
- modernjs
- nx
- rspress
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ on:
- "-"
- modernjs
- nx
- rspress

jobs:
execute-selected-suite:
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
suite:
- modernjs
- nx
- rspress
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion tests/modernjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export async function test(options: RunOptions) {
await $`pnpm playwright install chromium`
cd('../../../')
},
test: ['test:rspack', 'test:doc'],
test: ['test:rspack'],
})
}
14 changes: 14 additions & 0 deletions tests/rspress.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { runInRepo, $ } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'web-infra-dev/rspress',
branch: 'main',
beforeTest: async () => {
await $`pnpm playwright install`
},
test: ['test'],
})
}

0 comments on commit de2143c

Please sign in to comment.