Skip to content

Commit fb474b1

Browse files
authored
feat: add @webcontainer/test (#36)
1 parent ed7f841 commit fb474b1

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ on:
4646
- vitest-reporters-large
4747
- vitest-benchmark-large
4848
- vitest-pool-workers
49+
- webcontainer-test
4950

5051
jobs:
5152
init:
@@ -126,6 +127,7 @@ jobs:
126127
- vitest-coverage-large
127128
- vitest-reporters-large
128129
- vitest-benchmark-large
130+
- webcontainer-test
129131
fail-fast: false
130132
steps:
131133
- uses: actions/checkout@v4

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ on:
5151
- vitest-reporters-large
5252
- vitest-benchmark-large
5353
- vitest-pool-workers
54+
- webcontainer-test
55+
5456
jobs:
5557
execute-selected-suite:
5658
timeout-minutes: 60

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- vitest-reporters-large
5959
- vitest-benchmark-large
6060
- vitest-pool-workers
61+
- webcontainer-test
6162
fail-fast: false
6263
steps:
6364
- uses: actions/checkout@v4

tests/webcontainer-test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { runInRepo } from '../utils'
2+
import { RunOptions } from '../types'
3+
4+
export async function test(options: RunOptions) {
5+
await runInRepo({
6+
...options,
7+
repo: 'stackblitz/webcontainer-test',
8+
branch: 'main',
9+
build: 'build',
10+
test: 'test',
11+
beforeTest:
12+
'npx playwright install chromium firefox --with-deps --only-shell',
13+
})
14+
}

0 commit comments

Comments
 (0)