-
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (40 loc) · 1.21 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
name: CI Build & Test
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: pnpm/action-setup@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
# - name: Install D2 For Docs
# run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.27
- name: Init Environment Variables
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_GRAPHQL_ENDPOINT: ${{ secrets.SUPABASE_GRAPHQL_ENDPOINT }}
POSTHOG_PUBLIC_KEY: ${{ secrets.POSTHOG_PUBLIC_KEY }}
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
run: |
bun scripts/init-env.ts
- name: Install Dependencies
run: pnpm i
- name: Build and Test
env:
SUPABASE_GRAPHQL_ENDPOINT: ${{ secrets.SUPABASE_GRAPHQL_ENDPOINT }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
run: |
pnpm build
pnpm test