-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (37 loc) · 915 Bytes
/
ci.yaml
File metadata and controls
37 lines (37 loc) · 915 Bytes
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
name: CI
on:
push:
branches: ["main", "development"]
pull_request:
types: [opened, synchronize]
jobs:
ci:
timeout-minutes: 15
runs-on: ubuntu-latest
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: pnpm --filter=dca-subgraph prepare:mainnet && pnpm --filter=dca-sdk typechain
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test