Skip to content

Commit

Permalink
ci: add test:ci script with disabled watch mode in vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
jaipaljadeja committed Jul 11, 2024
1 parent 1ea8c42 commit 1abfd1a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Run build
run: pnpm build
- name: Run test
run: CI=true pnpm test
run: pnpm test:ci
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "turbo run build --parallel",
"typecheck": "turbo run typecheck --parallel",
"test": "turbo run test",
"test:ci": "turbo run test:ci",
"lint": "turbo run lint --parallel",
"lint:fix": "turbo run lint:fix --parallel",
"format": "turbo run format --parallel",
Expand Down
1 change: 1 addition & 0 deletions packages/beaconchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
1 change: 1 addition & 0 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
1 change: 1 addition & 0 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"typecheck": "tsc --noEmit",
"lint:fix": "pnpm lint --write",
"test": "vitest",
"test:ci": "vitest run",
"format": "biome format . --write"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
1 change: 1 addition & 0 deletions packages/starknet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
11 changes: 5 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"$schema": "https://turborepo.org/schema.json",
"tasks": {
"build": {
"dependsOn": [
"^build"
],
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": [
"build"
]
"dependsOn": ["build"]
},
"test:ci": {
"dependsOn": ["build"]
},
"typecheck": {
"cache": false
Expand Down

0 comments on commit 1abfd1a

Please sign in to comment.