ci: (RI-4198) Update CI runners #18
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 | |
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 |