Skip to content

Commit 0801eb8

Browse files
committed
chore: add ci tests
1 parent 838feb3 commit 0801eb8

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
matrix:
10+
node-version: [20]
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v4
15+
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: "pnpm"
21+
22+
- name: Install dependencies
23+
run: pnpm install --frozen-lockfile
24+
25+
- name: Run tests
26+
# TODO(security): test all packages & apps (js, noir & rust)
27+
run: cd packages/contracts && pnpm test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@repo/monorepo",
33
"type": "module",
44
"private": true,
5+
"packageManager": "pnpm@9.15.4",
56
"devDependencies": {
67
"prettier-plugin-svelte": "^3.2.7",
78
"typescript": "^5.6.3"

packages/contracts/envConfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { zPrivateKey } from "./shared/utils";
66
* Parse env variables in a typesafe way.
77
*/
88
const EnvConfigSchema = z.object({
9-
DEPLOYER_PRIVATE_KEY: zPrivateKey(),
9+
DEPLOYER_PRIVATE_KEY: zPrivateKey().default(
10+
// random key
11+
"0x845074c29c6487a92fa902e06" + "f1a1fe1ac0eb801fd6624b0a486e3c04a75721f",
12+
),
1013
});
1114

1215
let envConfig: z.infer<typeof EnvConfigSchema>;

0 commit comments

Comments
 (0)