feat: Add Bun and Deno to typescript support check #878
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- next | |
- 'v*' | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
jobs: | |
test: | |
uses: fastify/workflows/.github/workflows/[email protected] | |
with: | |
license-check: true | |
lint: true | |
bun: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
# The erraneous typod version `5.0.0-aplha` takes priority over .3 as 'p' > 'l' | |
run: | | |
bun i --ignore-scripts | |
bun i -D --ignore-scripts [email protected] | |
- name: Run types check | |
run: bun run typescript | |
- name: Run Jest tests | |
run: bun run typescript:jest | |
- name: Run Vitest tests | |
run: bun run typescript:vitest | |
- name: Run unit tests | |
run: bun run unit:bun |