-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (44 loc) · 1.1 KB
/
ci.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
name: CI
on:
push:
branches: ['main', 'development']
pull_request:
types: [opened, synchronize]
jobs:
ci:
timeout-minutes: 15
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Setup Foundry Toolchain
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: pnpm i
- name: Codegen
run: npx turbo codegen
- name: Build
run: npx turbo build
# These are dummy variables to satisfy next.js build
env:
REACT_APP_ALCHEMY_KEY: test
MONGODB_URI: test
WALLET_LABELS_API_KEY: test
ETHERSCAN_API_KEY_ETHEREUM: test
ETHERSCAN_API_KEY_GNOSIS: test
- name: Lint
run: npx turbo lint
- name: Test
run: npx turbo test