-
Notifications
You must be signed in to change notification settings - Fork 62
39 lines (33 loc) · 1.04 KB
/
check.yaml
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
name: Type check and lint
on: [push, pull_request]
permissions:
contents: read
jobs:
typecheck-and-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check and lint
run: pnpm run typecheck && pnpm run lint
env:
# use dummy env variables to bypass t3-env check
DATABASE_URL: postgres://test:xxxx@xxxxxxxxx:3306/test
SMTP_HOST: host
SMTP_PORT: 587
SMTP_USER: user
SMTP_PASSWORD: password
NEXT_PUBLIC_APP_URL: http://localhost:3000
DISCORD_CLIENT_ID: client_id
DISCORD_CLIENT_SECRET: client_secret
STRIPE_API_KEY: stripe_api_key
STRIPE_WEBHOOK_SECRET: stripe_webhook_secret
STRIPE_PRO_MONTHLY_PLAN_ID: stripe_pro_monthly_plan_id