-
-
Notifications
You must be signed in to change notification settings - Fork 169
91 lines (73 loc) · 2.1 KB
/
test_client.yaml
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
name: Client
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
jobs:
build:
name: "Client: Tests 🎨"
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
VERCEL_ENV: 'testing'
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.2.0
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: clients/.node-version
cache: "pnpm"
cache-dependency-path: "clients/pnpm-lock.yaml"
- name: Install dependencies
working-directory: ./clients
run: pnpm install
- uses: actions/cache@v4
with:
path: |
./clients/apps/web/.next
key: next-${{ hashFiles('./clients/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
next-${{ hashFiles('./clients/pnpm-lock.yaml') }}-
next-
- name: Build
working-directory: ./clients
run: pnpm build
- name: Test
working-directory: ./clients
run: pnpm test
build_storybook:
name: "Client: Storybook 🎨"
timeout-minutes: 15
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
VERCEL_ENV: 'testing'
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.2.0
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: v18
cache: "pnpm"
cache-dependency-path: "clients/pnpm-lock.yaml"
- name: Install dependencies
working-directory: ./clients
run: pnpm install
- name: Build SDK
working-directory: ./clients
run: pnpm turbo run build --filter=@polar-sh/*
- name: Build
working-directory: ./clients/apps/web
run: pnpm build-storybook