Skip to content

Commit

Permalink
improve ci test reliability (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime authored Mar 19, 2024
1 parent 958aaea commit 19f17f9
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/bech32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"scripts": {
"build": "vite build",
"clean": "rm -rfv dist",
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"dependencies": {
"bech32": "^2.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"build": "tsc && vite build",
"clean": "rm -rfv dist",
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
}
}
3 changes: 2 additions & 1 deletion packages/perspective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"scripts": {
"build": "vite build",
"clean": "rm -rfv dist",
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"dependencies": {
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.8.0-20240313211643-35db357c277d.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/perspective/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'vitest/config';
import wasm from 'vite-plugin-wasm';

export default defineConfig({
plugins: [wasm()],
});
3 changes: 2 additions & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"type": "module",
"scripts": {
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"dependencies": {
"@penumbra-zone/crypto-web": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/transport-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"description": "Tools for adapting `@penumbra-zone/transport` to Chrome's extension runtime messaging API",
"scripts": {
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"dependencies": {
"@bufbuild/protobuf": "^1.7.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/transport-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"scripts": {
"build": "tsc && vite build",
"clean": "rm -rfv dist",
"lint": "eslint \"**/*.ts*\""
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"devDependencies": {
"@buf/connectrpc_eliza.bufbuild_es": "1.8.0-20230913231627-233fca715f49.1",
Expand Down
14 changes: 10 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"outputs": ["bin/**"]
},
"compile": {
"inputs": ["crate/src/**"],
"inputs": ["crate/src/**", "crate/Cargo.toml", "crate/Cargo.lock"],
"outputs": ["wasm/**"]
},
"host": {
Expand All @@ -31,9 +31,15 @@
"persistent": true,
"cache": false
},
"test": { "dependsOn": ["compile", "//#playwright-install"] },
"test:rust": { "dependsOn": ["download-keys", "compile"] },
"lint:rust": { "dependsOn": ["download-keys", "compile"] },
"test": { "dependsOn": ["compile", "//#playwright-install"], "cache": false },
"test:rust": {
"dependsOn": ["download-keys", "compile"],
"inputs": ["crate/src/**", "crate/Cargo.toml", "crate/Cargo.lock", "crate/tests/**"]
},
"lint:rust": {
"dependsOn": ["download-keys", "compile"],
"inputs": ["crate/src/**", "crate/Cargo.toml", "crate/Cargo.lock", "crate/tests/**"]
},
"format-check:rust": { "dependsOn": ["download-keys", "compile"] },
"//#playwright-install": { "cache": false },
"clean": {
Expand Down

0 comments on commit 19f17f9

Please sign in to comment.