chore(github): add bun build for unit test action #35
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: | |
push: | |
pull_request: | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Setup Biome | |
uses: biomejs/setup-biome@1cbe33ead22c7a2fded3b52fa2893611c815c9b5 # v2 | |
with: | |
version: latest | |
- name: Run Biome | |
run: biome ci . | |
unit-tests: | |
concurrency: ci-unit-tests-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.0 | |
- name: Install | |
run: | | |
bun install | |
- name: Build | |
run: | | |
bun run build | |
- name: Unit-Tests | |
run: | | |
bun run test |