-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (46 loc) Β· 1.36 KB
/
ci.yaml
File metadata and controls
57 lines (46 loc) Β· 1.36 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
50
51
52
53
54
55
56
57
name: π CI
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/programmerbar
FEIDE_CLIENT_ID: test
FEIDE_CLIENT_SECRET: test
FEIDE_REDIRECT_URI: http://localhost:8000/auth/feide/callback
ADMIN_KEY: test-admin-key
PUBLIC_GITHUB_SHA: ${{ github.sha }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
PUBLIC_VAPID_PUBLIC_KEY: ${{ secrets.PUBLIC_VAPID_PUBLIC_KEY }}
VAPID_PRIVATE_KEY: ${{ secrets.VAPID_PRIVATE_KEY }}
VAPID_SUBJECT: "mailto:web@programmerbar.no"
PUBLIC_CLOUDFLARE_TURNSTILE_SITE_KEY: 1x00000000000000000000AA
CLOUDFLARE_TURNSTILE_SITE_SECRET: 1x0000000000000000000000000000000AA
jobs:
ci:
name: π Run CI
runs-on: ubuntu-latest
steps:
- name: π Checkout
uses: actions/checkout@v4
- name: π¦ Setup pnpm
uses: pnpm/action-setup@v4
- name: π’ Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml
- name: π¦ Install dependencies
run: pnpm install --frozen-lockfile
- name: π΅ Check
run: pnpm check
- name: π¦ Lint
run: pnpm lint
- name: β‘ Format check
run: pnpm format:check
- name: π Build
run: pnpm build