forked from scroll-tech/rollup-node
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (87 loc) · 2.79 KB
/
Copy pathtest.yaml
File metadata and controls
93 lines (87 loc) · 2.79 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: test
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
unit:
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 60
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v6
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: 'nightly-2026-01-05'
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Run unit tests
run: cargo nextest run --all-features --workspace --locked -E '!kind(test)'
integration:
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 60
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v6
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: 'nightly-2026-01-05'
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Install pinned Anvil
run: |
ANVIL_BIN="$(.github/assets/install_anvil.sh "$RUNNER_TEMP/anvil" | tail -n1)"
echo "ANVIL_BIN=$ANVIL_BIN" >> "$GITHUB_ENV"
- name: Run integration tests
run: |
cargo nextest run --all-features --workspace --locked --no-fail-fast \
--no-tests=pass -E 'kind(test) and not test(docker)' \
-- --skip test_should_consolidate_to_block_15k
integration-docker-compose:
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 90
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v6
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Verify Docker test disk capacity
run: |
set -euo pipefail
df -h /
available_kib=$(df --output=avail / | tail -n 1 | tr -d ' ')
minimum_kib=$((32 * 1024 * 1024))
if (( available_kib < minimum_kib )); then
echo "Docker Compose tests require at least 32 GiB free; available_kib=$available_kib" >&2
exit 1
fi
- name: Run Docker Compose integration tests
run: |
cargo nextest run --all-features --workspace --locked --no-fail-fast \
--no-tests=pass -E 'test(docker)' --test-threads=1 \
--failure-output immediate \
--success-output never \
--verbose
env:
RUST_LOG: trace
RUST_BACKTRACE: full