-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (59 loc) · 1.67 KB
/
ci.yml
File metadata and controls
72 lines (59 loc) · 1.67 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
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: client
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.11.0
run_install: false
- name: Setup Node (from .nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: client/.nvmrc
cache: pnpm
cache-dependency-path: client/pnpm-lock.yaml
- name: Cache turbo
uses: actions/cache@v4
with:
path: client/.turbo
key: ${{ runner.os }}-turbo-${{ hashFiles('client/pnpm-lock.yaml', 'client/turbo.json', 'client/**/package.json') }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint (serial)
env:
NODE_OPTIONS: --max-old-space-size=4096
TURBO_UI: stream
run: pnpm turbo lint --continue --concurrency=1 --no-daemon
- name: Type-check
env:
NODE_OPTIONS: --max-old-space-size=4096
TURBO_UI: stream
run: pnpm turbo type-check --no-daemon
- name: Zip extension
env:
NODE_OPTIONS: --max-old-space-size=4096
run: pnpm zip
- name: Upload dist-zip artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: dist-zip
path: client/dist-zip/*.zip
if-no-files-found: warn