Improved unit testing and correct spec mistakes #27
This file contains 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: Checks | |
"on": | |
pull_request: | |
paths: | |
- src/** | |
- tests/** | |
jobs: | |
unit-test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Project Setup | |
uses: ./.github/workflows/steps/project-setup | |
- name: Bundle OpenAPI Spec | |
run: bun run build | |
- name: Run Unit Tests | |
run: bun run test | |
type-check: | |
name: Run Type Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Project Setup | |
uses: ./.github/workflows/steps/project-setup | |
- name: Run Unit Tests | |
run: bun run type-check | |
lint: | |
name: Run OpenApi Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Project Setup | |
uses: ./.github/workflows/steps/project-setup | |
- name: OpenAPI Lint | |
run: bun run lint | |
- name: Install Speakeasy CLI | |
run: bun run setup-speakeasy-cli | |
- name: Bundle OpenAPI Spec | |
run: bun run build | |
- name: OpenAPI Lint On Bundled Spec | |
run: bun run lint-bundled |