-
-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.2 KB
/
ci.yml
File metadata and controls
53 lines (43 loc) · 1.2 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
name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node and pnpm
uses: ./.github/actions/setup-pnpm
with:
node-version: "20"
pnpm-version: "9"
- name: Restore Turbo cache
uses: ./.github/actions/turbo-cache
- name: Install dependencies
uses: ./.github/actions/install-deps
# Optional: set TURBO_TOKEN and TURBO_TEAM for Vercel Remote Cache
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
- name: Lint, typecheck, test, build
run: pnpm exec turbo run lint typecheck test build
- name: Save Turbo cache
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ hashFiles('pnpm-lock.yaml', 'turbo.json') }}
restore-keys: |
${{ runner.os }}-turbo-