chore(ci): Minor release workflow improvements #7
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: Lint and Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Biome | |
uses: biomejs/setup-biome@v2 | |
with: | |
version: latest | |
- name: Run Biome | |
run: biome ci . | |
checks: | |
name: Checks & Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
pnpm-version: [9.6.0] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm ${{ matrix.pnpm-version }} | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ matrix.pnpm-version }} | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Build | |
run: pnpm run build | |
- name: Typecheck | |
run: pnpm run typecheck | |
- name: Tests | |
run: pnpm run test |