mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +00:00
test(proxy): gate proxy e2e coverage in checks
This commit is contained in:
1 parent
1cfed73ca5
commit
69da284104
4 files changed
+19
No files matched your search
@@ -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