-
Notifications
You must be signed in to change notification settings - Fork 11.2k
79 lines (75 loc) · 2.17 KB
/
turborepo.yml
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
name: Turborepo CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
audit:
name: pnpm audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Run audit
run: pnpm audit --prod --audit-level moderate
build:
name: Lint, Build, and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/[email protected]
with:
version: 8
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Manypkg Check
run: pnpm manypkg check
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-
- name: Lint
run: pnpm turbo lint
- name: Install wasm-pack for mbf package
uses: jetli/[email protected]
with:
version: 'latest'
- name: Build
run: pnpm turbo build
- name: Test
run: pnpm turbo test
# Pack wallet extension and upload it as an artifact for easy developer use:
- name: Wallet Extension Has Changes?
id: wallet-diff
continue-on-error: true
run: pnpm dlx turbo-ignore sui-wallet
- name: Wallet Extension Preview Package
if: ${{ steps.wallet-diff.outcome == 'failure' }}
run: pnpm --filter sui-wallet pack:zip
- uses: actions/upload-artifact@v3
if: ${{ steps.wallet-diff.outcome == 'failure' }}
with:
name: wallet-extension
path: apps/wallet/web-ext-artifacts/*
if-no-files-found: error
retention-days: 7