File tree Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Test and check
2+ on :
3+ push :
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-24.04
8+ strategy :
9+ matrix :
10+ node-version : [20, 22]
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Install pnpm
14+ uses : pnpm/action-setup@v4
15+ with :
16+ version : 10.8.0
17+ - name : Use Node.js ${{ matrix.node-version }}
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ${{ matrix.node-version }}
21+ cache : ' pnpm'
22+ - name : Create .dev.vars file
23+ run : |
24+ echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > ./apps/sandbox-container/.dev.vars
25+ - name : Install dependencies
26+ run : pnpm install
27+ - name : Run evals
28+ run : pnpm eval
Original file line number Diff line number Diff line change 1313 "postinstall" : " mkdir -p workdir" ,
1414 "test" : " vitest" ,
1515 "types" : " wrangler types" ,
16- "eval:dev" : " concurrently \" npm run dev\" \" vitest --config vitest.config.evals.ts\" "
16+ "eval:dev" : " concurrently \" npm run dev\" \" vitest --config vitest.config.evals.ts\" " ,
17+ "eval" : " concurrently \" npm run dev\" \" vitest run --config vitest.config.evals.ts\" "
1718 },
1819 "dependencies" : {
1920 "@cloudflare/workers-oauth-provider" : " 0.0.2" ,
Original file line number Diff line number Diff line change 2424 "test:ci" : " run-vitest-ci" ,
2525 "test" : " vitest run" ,
2626 "fix:format" : " prettier . --write" ,
27- "test:watch" : " vitest"
27+ "test:watch" : " vitest" ,
28+ "eval" : " run-turbo eval"
2829 },
2930 "devDependencies" : {
3031 "@changesets/cli" : " 2.28.1" ,
Original file line number Diff line number Diff line change 1010 "check:lint" : {
1111 "dependsOn" : [" ^check:lint" ]
1212 },
13+ "eval" : {
14+ "dependsOn" : [" ^eval" ]
15+ },
1316 "//#check:format" : {},
1417 "//#check:deps" : {}
1518 }
You can’t perform that action at this time.
0 commit comments