-
Notifications
You must be signed in to change notification settings - Fork 2.2k
71 lines (58 loc) · 1.89 KB
/
protocol.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
name: Protocol
on:
push:
branches: [main]
paths:
- "packages/protocol/**"
pull_request:
paths:
- "packages/protocol/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies
- name: protocol - Unit Tests
working-directory: ./packages/protocol
run: pnpm clean && pnpm test
- name: protocol - Generate Genesis
working-directory: ./packages/protocol
run: pnpm test:genesis
# TODO: CompilerError: Stack too deep
# - name: protocol - Test Coverage
# working-directory: ./packages/protocol
# run: pnpm test:coverage
- name: protocol - Run snapshot (foundry)
working-directory: ./packages/protocol
run: pnpm snapshot
- name: protocol - Deploy L1 Contracts
working-directory: ./packages/protocol
run: |
anvil &
while ! nc -z localhost 8545; do
sleep 1
done
pnpm deploy:foundry
# - name: protocol - Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# directory: ./packages/protocol/coverage
# flags: protocol
# - name: protocol - Generate contract documentation
# run: pnpm -F protocol export:docs
# - name: protocol - Commit contract documentation
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Add auto-generated contract documentation
# file_pattern: "**/*.md"