-
-
Notifications
You must be signed in to change notification settings - Fork 774
51 lines (42 loc) · 1.06 KB
/
ci.yml
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
50
51
name: CI
on:
push:
branches:
- main
pull_request_target:
branches:
- main
paths-ignore:
- ".vscode/**"
- "*.md"
env:
# Database
DATABASE_URL: file:./ci.db
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}}
CLERK_SECRET_KEY: ${{secrets.CLERK_SECRET_KEY}}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL: /sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /app
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /app
# Upstash
UPSTASH_REDIS_REST_URL: ${{secrets.UPSTASH_REDIS_REST_URL}}
UPSTASH_REDIS_REST_TOKEN: ${{secrets.UPSTASH_REDIS_REST_TOKEN}}
jobs:
main:
name: CI
runs-on: ubuntu-latest
environment: CI
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Check format
run: bun run format:check
- name: Check lint
run: bun run lint
- name: Build
run: bun run build