-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.06 KB
/
code-quality.yml
File metadata and controls
46 lines (43 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Code Quality
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
code-quality:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Lint
command: bun run lint
- name: Format
command: bun run format
- name: Typecheck
command: bun run typecheck
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Setup Bun cache
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install
- name: Build
if: ${{ matrix.name != 'Format' }}
run: bun run build
- name: ${{ matrix.name }}
run: ${{ matrix.command }}