31
31
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
32
32
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
33
33
sudo cp just /usr/bin/just
34
+ - name : Install rustfmt for nightly
35
+ run : rustup component add --toolchain nightly rustfmt
36
+ - name : Install Foundry
37
+ uses : foundry-rs/foundry-toolchain@v1
34
38
- name : Install protobuf compiler
35
39
run : |
36
40
sudo apt-get update
60
64
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
61
65
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
62
66
sudo cp just /usr/bin/just
67
+ - name : Install rustfmt for nightly
68
+ run : rustup component add --toolchain nightly rustfmt
69
+ - name : Install Foundry
70
+ uses : foundry-rs/foundry-toolchain@v1
63
71
- name : Run tests
64
72
run : just test_ci
65
73
@@ -81,12 +89,14 @@ jobs:
81
89
sudo cp just /usr/bin/just
82
90
- name : Install rustfmt for nightly
83
91
run : rustup component add --toolchain nightly rustfmt
92
+ - name : Install Foundry
93
+ uses : foundry-rs/foundry-toolchain@v1
84
94
- name : Check packages individually
85
95
run : just check-individually
86
96
- name : Run lint
87
97
run : just lint
98
+
88
99
build-docker :
89
- needs : build
90
100
runs-on : ubuntu-latest
91
101
steps :
92
102
- uses : actions/checkout@v5
@@ -101,6 +111,7 @@ jobs:
101
111
sudo cp just /usr/bin/just
102
112
- name : Build Docker
103
113
run : just build_docker
114
+
104
115
integration :
105
116
runs-on : ubuntu-latest
106
117
timeout-minutes : 25
@@ -118,9 +129,74 @@ jobs:
118
129
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
119
130
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
120
131
sudo cp just /usr/bin/just
132
+ - name : Install rustfmt for nightly
133
+ run : rustup component add --toolchain nightly rustfmt
134
+ - name : Install Foundry
135
+ uses : foundry-rs/foundry-toolchain@v1
121
136
- name : Run tests
122
137
run : just run_demo -s /tmp/stamp --ignore-stamp --yapper -k test-configs/local-5.json
123
138
- name : Run tests with late-start node
124
139
run : just run_demo -l -s /tmp/stamp --ignore-stamp --yapper -k test-configs/local-5.json
125
140
- name : Run sailfish demo
126
141
run : just run_sailfish_demo
142
+
143
+ contracts :
144
+ runs-on : ubuntu-latest
145
+ steps :
146
+ - uses : actions/checkout@v4
147
+ with :
148
+ submodules : recursive
149
+ fetch-depth : 0
150
+ - name : Install Just
151
+ run : |
152
+ wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
153
+ tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
154
+ sudo cp just /usr/bin/just
155
+ - name : Install rustfmt for nightly
156
+ run : rustup component add --toolchain nightly rustfmt
157
+ - name : Install Foundry
158
+ uses : foundry-rs/foundry-toolchain@v1
159
+ - name : Run contract tests
160
+ run : forge test -vvv
161
+
162
+ nitro-timeboost-integration :
163
+ runs-on : ubuntu-latest
164
+ timeout-minutes : 60
165
+ steps :
166
+ - uses : actions/checkout@v4
167
+ with :
168
+ submodules : recursive
169
+ fetch-depth : 0
170
+ - name : Install protobuf compiler
171
+ run : |
172
+ sudo apt-get update
173
+ sudo apt-get install -y protobuf-compiler
174
+ - name : Install Just
175
+ run : |
176
+ wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
177
+ tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
178
+ sudo cp just /usr/bin/just
179
+ - name : Install rustfmt for nightly
180
+ run : rustup component add --toolchain nightly rustfmt
181
+ - name : Install Foundry
182
+ uses : foundry-rs/foundry-toolchain@v1
183
+ - name : Clone Espresso Testnode Repository
184
+ run : |
185
+ git clone --recursive https://github.com/EspressoSystems/decentralized-timeboost-nitro-testnode.git
186
+ - name : Run Test Node with Timeboost
187
+ run : |
188
+ cd decentralized-timeboost-nitro-testnode
189
+ chmod +x test-node.bash
190
+ ./test-node.bash \
191
+ --build-dev-nitro \
192
+ --batchposters 0 \
193
+ --redundantsequencers 1 \
194
+ --decentralized-timeboost \
195
+ --init &
196
+ cd ..
197
+ - name : Run test timeboost with nitro sequencer
198
+ run : just run_demo -s /tmp/stamp --ignore-stamp -k test-configs/local-2.json --rounds 10000 --yapper --nitro
199
+ - name : Verify sequencer blocks
200
+ run : |
201
+ RUST_LOG=info just verify_blocks
202
+
0 commit comments