-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.05 KB
/
ci.yml
File metadata and controls
49 lines (38 loc) · 1.05 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
47
48
49
name: ci
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: plugin-sdk-frontend-pr-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
frontend-quality:
name: Lint, typecheck, and build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.23"
- name: Cache Bun packages
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-plugin-sdk-react-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-plugin-sdk-react-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Biome lint
run: bun run lint
- name: Typecheck
run: bun run typecheck
- name: Build library
run: bun run build