-
Notifications
You must be signed in to change notification settings - Fork 188
111 lines (107 loc) · 3.24 KB
/
frontend.yml
File metadata and controls
111 lines (107 loc) · 3.24 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: frontend
on:
pull_request:
paths:
- .github/workflows/frontend.yml
- frontend/**
- engine/sdks/typescript/**
- rivetkit-typescript/**
- website/**
concurrency:
group: frontend-${{ github.ref }}
cancel-in-progress: true
jobs:
dashboard-quality-check:
name: Dashboard / Quality Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
with:
version: latest
- run: biome check ./frontend --formatter-enabled=true --linter-enabled=false --assist-enabled=false --reporter=github
rivetkit-quality-check:
name: RivetKit / Quality Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
with:
version: latest
- run: biome check ./rivetkit-typescript --formatter-enabled=true --linter-enabled=false --assist-enabled=false --reporter=github
# website-quality-check:
# name: Website / Quality Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: biomejs/setup-biome@v2
# with:
# version: latest
# - run: biome check ./website --reporter=github
dashboard-type-check:
name: Dashboard / Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: pnpm install --frozen-lockfile
- run: pnpm build --filter='./frontend'
env:
NODE_OPTIONS: '--max-old-space-size=8192'
- run: pnpm check-types
working-directory: ./frontend
rivetkit-type-check:
name: RivetKit / Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: pnpm install --frozen-lockfile
- run: pnpm exec turbo run build --filter='./rivetkit-typescript/packages/*'
- run: pnpm exec turbo run check-types --filter='./rivetkit-typescript/packages/*'
# website-type-check:
# name: Website / Type Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: 'true'
# - uses: pnpm/action-setup@v4
# - uses: actions/setup-node@v4
# with:
# node-version-file: .node-version
# cache: pnpm
# - uses: actions/cache@v4
# with:
# path: .turbo
# key: ${{ runner.os }}-turbo-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-turbo-
# - run: pnpm install --frozen-lockfile
# - run: pnpm build
# - run: pnpm check-types
# working-directory: ./website