Skip to content

ci: (RI-4198) Update CI runners #17

ci: (RI-4198) Update CI runners

ci: (RI-4198) Update CI runners #17

Workflow file for this run

name: πŸ“ Lint
on:
pull_request:
branches:
- main
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: πŸ’» Checkout current code ref
uses: actions/checkout@v4
- name: 🟒 Configure Bun on runner
uses: oven-sh/setup-bun@v1
- name: πŸ“¦ Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: 🌷 Run format, lint & check with Biome
run: |
bun run format
bun run lint
bun run check
commitlint:
runs-on: ubuntu-latest
steps:
- name: πŸ’» Checkout current code ref
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🟒 Configure Bun on runner
uses: oven-sh/setup-bun@v1
- name: πŸ“¦ Install package dependencies using lockfile
run: bun install --frozen-lockfile
# Check all commits pushed to this PR
- name: πŸ‘οΈβ€πŸ—¨οΈ Validate PR commits with commitlint
run: >-
npx commitlint
--from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }}
--to ${{ github.event.pull_request.head.sha }}
--verbose
- name: πŸ”Ž Validate PR title with commitlint
run: echo "${{ github.event.pull_request.title }}" | npx commitlint