-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (64 loc) · 2.26 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
merge_group:
env:
DASHBOARD_AUTH0_CLIENT_ID: ${{ secrets.DASHBOARD_AUTH0_CLIENT_ID }}
DASHBOARD_AUTH0_CLIENT_SECRET: ${{ secrets.DASHBOARD_AUTH0_CLIENT_SECRET }}
DASHBOARD_AUTH0_ISSUER: ${{ secrets.DASHBOARD_AUTH0_ISSUER }}
WEB_AUTH0_CLIENT_ID: ${{ secrets.WEB_AUTH0_CLIENT_ID }}
WEB_AUTH0_CLIENT_SECRET: ${{ secrets.WEB_AUTH0_CLIENT_SECRET }}
WEB_AUTH0_ISSUER: ${{ secrets.WEB_AUTH0_ISSUER }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
AWS_REGION: ${{ secrets.AWS_REGION }}
TRIKOM_STRIPE_PUBLIC_KEY: ${{ secrets.TRIKOM_STRIPE_PUBLIC_KEY }}
TRIKOM_STRIPE_SECRET_KEY: ${{ secrets.TRIKOM_STRIPE_SECRET_KEY }}
TRIKOM_STRIPE_WEBHOOK_SECRET: ${{ secrets.TRIKOM_STRIPE_WEBHOOK_SECRET }}
FAGKOM_STRIPE_PUBLIC_KEY: ${{ secrets.FAGKOM_STRIPE_PUBLIC_KEY }}
FAGKOM_STRIPE_SECRET_KEY: ${{ secrets.FAGKOM_STRIPE_SECRET_KEY }}
FAGKOM_STRIPE_WEBHOOK_SECRET: ${{ secrets.FAGKOM_STRIPE_WEBHOOK_SECRET }}
S3_BUCKET_MONOWEB: ${{ secrets.S3_BUCKET_MONOWEB }}
GTX_AUTH0_CLIENT_ID: ${{ secrets.GTX_AUTH0_CLIENT_ID }}
GTX_AUTH0_CLIENT_SECRET: ${{ secrets.GTX_AUTH0_CLIENT_SECRET }}
GTX_AUTH0_ISSUER: ${{ secrets.GTX_AUTH0_ISSUER }}
jobs:
build:
name: Build and Test
timeout-minutes: 15
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.12.2
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type Check
run: pnpm type-check
- name: Lint
run: pnpm lint-check
- name: Build
run: pnpm run build