forked from zkpassport/zkpassport-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (77 loc) · 2.3 KB
/
ci.yml
File metadata and controls
96 lines (77 loc) · 2.3 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
name: Workspace
on:
push:
branches: [main]
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get install -y lsof jq zsh
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: v1.4.4
- name: Install Foundry dependencies
run: forge install
working-directory: packages/registry-contracts
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1
- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Setup Turbo cache
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Build
run: bun run build
- name: Check
run: bun run check
- name: Test
run: bun run test
dependency-sync-check:
name: Dependency Sync Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1
- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Ensure workspace dependencies are synced
run: bash scripts/sync-workspace-deps.sh check
large-file-check:
name: Large File Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need full history to compare with trunk
- name: Check for large files
run: bash scripts/find-large-file-commits.sh