-
Notifications
You must be signed in to change notification settings - Fork 62
70 lines (57 loc) · 1.68 KB
/
integration.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
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
name: Integration
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches: [develop]
env:
CARGO_TERM_COLOR: always
PLAYGROUND_DIR: /tmp/playground
jobs:
integration:
name: Lint and test
runs-on: warp-ubuntu-latest-x64-16x
strategy:
matrix:
toolchain:
- stable
#- beta
#- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Download suave playground
uses: ./.github/actions/download_playground
- name: Install Foundry toolchain
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install native dependencies
run: sudo apt-get install -y libsqlite3-dev
- name: Check reth
run: |
which reth
reth --version
- name: Check lighthouse
run: |
which lighthouse
lighthouse --version
- name: Build the rbuilder
run: cargo build
- name: Run the playground
run: suave-playground --output /tmp/playground &
- name: Run integration tests
run: cargo test --package rbuilder --lib -- integration::tests::test_simple_example --exact
- name: Move test integration logs to playground logs to archive
# This steps fails if the test fails early and the playground logs dir has not been created
if: ${{ failure() }}
run: |
mv integration_logs /tmp/playground/logs
- name: Archive playground logs
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playground-logs
path: /tmp/playground/logs
retention-days: 5