Skip to content

ci: set up lint checks that run on PR #2

ci: set up lint checks that run on PR

ci: set up lint checks that run on PR #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 10
runs-on: ubuntu-latest
name: "Biome CI checks"
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
- name: Set node version to respect package.json
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: CI lint and format
run: pnpm biome ci .
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck=""