-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (48 loc) · 1.52 KB
/
ci.yaml
File metadata and controls
63 lines (48 loc) · 1.52 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
58
59
60
61
62
63
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
ci:
if: ${{ github.event_name == 'push' || (!contains(github.event.pull_request.title, 'DRAFT') && !contains(github.event.pull_request.title, 'Draft') && !contains(github.event.pull_request.title, 'draft') && !contains(github.event.pull_request.labels.*.name, 'draft')) }}
runs-on: ubuntu-latest
timeout-minutes: 40
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v1.8
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.0.0
- name: Setup node with cache
uses: actions/setup-node@v3
with:
node-version: 22.14.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Genseki Prisma generator
run: pnpm --filter @genseki/prisma-generator codegen
- name: Install dependencies (again)
run: pnpm install --frozen-lockfile
- name: Run typecheck
run: pnpm turbo typecheck
- name: Run format:check
run: pnpm turbo format:check
- name: Run lint
run: pnpm turbo lint
- name: Run tests
run: pnpm turbo test
- name: Run bundle
run: pnpm turbo bundle
- name: Run build
run: pnpm turbo build