-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { runInRepo, cd, $ } from '../utils' | ||
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (_selftest)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (modernjs-builder)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (modernjs-framework)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (modernjs-garfish)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (nx)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (rspress)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (rsbuild)
Check warning on line 1 in tests/modernjs-framework.ts GitHub Actions / ci (compat)
|
||
import { RunOptions } from '../types' | ||
|
||
export async function test(options: RunOptions) { | ||
await runInRepo({ | ||
...options, | ||
repo: 'web-infra-dev/modern.js', | ||
branch: process.env.MODERN_REF ?? 'main', | ||
beforeTest: async () => { | ||
cd('tests') | ||
}, | ||
test: ['pnpm run test:framework'], | ||
}) | ||
} |
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/modern.js', | ||
branch: process.env.MODERN_REF ?? 'main', | ||
beforeTest: async () => { | ||
cd('tests/e2e/builder') | ||
await $`pnpm playwright install --with-deps chromium` | ||
cd('../../') | ||
}, | ||
test: ['pnpm run test:garfish:rspack'], | ||
}) | ||
} |