mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 18:18:43 +00:00
test(proxy): gate proxy e2e coverage in checks
This commit is contained in:
@@ -139,3 +139,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: bun run test:all
|
run: bun run test:all
|
||||||
|
|
||||||
|
- name: Test CLI e2e
|
||||||
|
env:
|
||||||
|
CCS_E2E_SKIP_BUILD: '1'
|
||||||
|
run: bun run test:e2e
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ jobs:
|
|||||||
- name: Validate (typecheck + lint + format + tests)
|
- name: Validate (typecheck + lint + format + tests)
|
||||||
run: bun run validate
|
run: bun run validate
|
||||||
|
|
||||||
|
- name: Test CLI e2e
|
||||||
|
env:
|
||||||
|
CCS_E2E_SKIP_BUILD: '1'
|
||||||
|
run: bun run test:e2e
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
id: release
|
id: release
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -45,6 +45,11 @@ jobs:
|
|||||||
- name: Validate (typecheck + lint + format + tests)
|
- name: Validate (typecheck + lint + format + tests)
|
||||||
run: bun run validate
|
run: bun run validate
|
||||||
|
|
||||||
|
- name: Test CLI e2e
|
||||||
|
env:
|
||||||
|
CCS_E2E_SKIP_BUILD: '1'
|
||||||
|
run: bun run test:e2e
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
id: release
|
id: release
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ function runCli(args: string[], extraEnv: Record<string, string> = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
|
if (process.env.CCS_E2E_SKIP_BUILD === '1') {
|
||||||
|
expect(fs.existsSync(DIST_ENTRY)).toBe(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
const result = spawnSync(process.execPath, ['run', 'build'], {
|
const result = spawnSync(process.execPath, ['run', 'build'], {
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
env: process.env,
|
env: process.env,
|
||||||
|
|||||||
Reference in New Issue
Block a user