-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 850 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (29 loc) · 850 Bytes
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
name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
# package.json currently leads bun.lock; install without rewriting the checkout so CI can validate the app.
run: bun install --no-save
- name: Typecheck
run: bun run typecheck
- name: Lint
run: bun run lint
- name: Test
run: bun run test
- name: Build
env:
# Non-secret CI-only values; production deployments provide their own environment variables.
VITE_SUPABASE_URL: 'https://ci.supabase.co'
VITE_SUPABASE_ANON_KEY: 'ci-build-key'
run: bun run build