chore: changeset #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Run integration test (MSW) | |
run: pnpm -F typed-openapi test:runtime | |
- name: Type check generated client and integration test | |
run: pnpm --filter typed-openapi exec tsc -b ./tsconfig.ci.json | |
- name: Test | |
run: pnpm test | |
- name: Test types | |
run: pnpm --filter typed-openapi test:types | |
- name: Release package | |
run: pnpm dlx pkg-pr-new publish './packages/typed-openapi' |