Biome #294
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, pull_request] | |
jobs: | |
build: | |
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16, 18, 20, 21] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- run: corepack enable | |
- name: Set-up Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: CI checks with Biome | |
run: pnpm run ci | |
- name: Typecheck | |
run: pnpm run typecheck | |
- name: Test | |
run: pnpm run test -- --coverage | |
- name: Build | |
run: pnpm run build |