Skip to content

Commit

Permalink
feat: add rsdoctor in rspack ecosystem-ci (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Nov 26, 2024
1 parent 601c8eb commit aef0b78
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
os: ubuntu-latest
- suite: rslib
os: ubuntu-latest
- suite: rsdoctor
os: ubuntu-latest
- suite: devserver
os: ubuntu-latest
- suite: nuxt
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ecosystem-ci-from-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
os: ubuntu-latest
# - suite: nx
# os: ubuntu-latest
- suite: rsdoctor
os: ubuntu-latest
- suite: rspress
os: ubuntu-latest
- suite: rslib
Expand Down
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 @@ -126,6 +126,8 @@ jobs:
os: ubuntu-latest
- suite: rsbuild
os: ubuntu-latest
- suite: rsdoctor
os: ubuntu-latest
- suite: examples
os: ubuntu-latest
- suite: devserver
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ on:
- rspress
- rsbuild
- rslib
- rsdoctor
- examples
- devserver
suiteRefType:
Expand Down Expand Up @@ -123,6 +124,8 @@ jobs:
os: ubuntu-latest
- suite: rsbuild
os: ubuntu-latest
- suite: rsdoctor
os: ubuntu-latest
- suite: examples
os: ubuntu-latest
- suite: devserver
Expand Down
16 changes: 16 additions & 0 deletions tests/rsdoctor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { runInRepo, $, cd } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'web-infra-dev/rsdoctor',
branch: process.env.RSDOCTOR ?? 'main',
beforeTest: async () => {
cd('./e2e')
await $`pnpm playwright install --with-deps`
cd('..')
},
test: ['e2e'],
})
}

0 comments on commit aef0b78

Please sign in to comment.