File tree Expand file tree Collapse file tree 6 files changed +4861
-13838
lines changed
.github/actions/validate-sdk Expand file tree Collapse file tree 6 files changed +4861
-13838
lines changed Original file line number Diff line number Diff line change @@ -9,53 +9,58 @@ inputs:
99runs :
1010 using : ' composite'
1111 steps :
12+ - name : Install pnpm
13+ uses : pnpm/action-setup@v4
14+ with :
15+ version : 10
16+
1217 - name : Setup Node.js
1318 uses : actions/setup-node@v4
1419 with :
1520 node-version : ' 22'
16- cache : ' npm '
21+ cache : ' pnpm '
1722
1823 - name : Install dependencies
1924 shell : bash
20- run : npm install
25+ run : pnpm install
2126
2227 - name : Build SDK
2328 shell : bash
24- run : npm run build
29+ run : pnpm run build
2530
2631 - name : Typecheck tests directory
2732 shell : bash
28- run : npx tsc --noEmit --skipLibCheck --esModuleInterop --moduleResolution node --module esnext --target es2020 tests/**/*.ts
33+ run : pnpm exec tsc --noEmit --skipLibCheck --esModuleInterop --moduleResolution node --module esnext --target es2020 tests/**/*.ts
2934
3035 - name : Install examples dependencies
3136 shell : bash
3237 working-directory : examples
33- run : npm install
38+ run : pnpm install
3439
3540 # TODO: Re-enable when Speakeasy fixes generated code type errors
3641 - name : Typecheck examples root
3742 shell : bash
3843 working-directory : examples
39- run : npx tsc
44+ run : pnpm exec tsc
4045
4146 - name : Install nextjs-example dependencies
4247 shell : bash
4348 working-directory : examples/nextjs-example
44- run : npm install
49+ run : pnpm install
4550
4651 - name : Typecheck nextjs-example
4752 shell : bash
4853 working-directory : examples/nextjs-example
49- run : npx tsc --noEmit
54+ run : pnpm exec tsc --noEmit
5055
5156 - name : Run unit tests
5257 shell : bash
5358 env :
5459 OPENROUTER_API_KEY : ${{ inputs.openrouter-api-key }}
55- run : npx vitest --run --exclude 'tests/e2e/**'
60+ run : pnpm exec vitest --run --exclude 'tests/e2e/**'
5661
5762 - name : Run e2e tests
5863 shell : bash
5964 env :
6065 OPENROUTER_API_KEY : ${{ inputs.openrouter-api-key }}
61- run : npx vitest --run tests/e2e/
66+ run : pnpm exec vitest --run tests/e2e/
Original file line number Diff line number Diff line change 3030.env. * .local
3131/examples /.env
3232/examples /package-lock.json
33+ /examples /nextjs-example /package-lock.json
34+ /examples /nextjs-example /package.lock.json
3335/temp
You can’t perform that action at this time.
0 commit comments