Skip to content

Commit 5286e01

Browse files
authored
Integration Test Improvements (#165)
* move run to lib * move tests to proper dir * move tests to individual files * update test ci * remove old integration CI * unused_crate_dependencies * typo * Update tests/builder_returns_incorrect_block.rs Co-authored-by: 0xOsiris <[email protected]> * lazylock to claim ports * random network string * check Claimed Ports before inserting * improve forward_miner_set_gas_price test reliability
1 parent e116487 commit 5286e01

31 files changed

+1725
-1635
lines changed

.github/workflows/integration.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,22 @@ name: Tests
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
pull_request:
87

8+
env:
9+
CARGO_TERM_COLOR: always
10+
911
jobs:
10-
build:
12+
run-tests:
13+
name: Run tests
1114
runs-on: ubuntu-latest
12-
1315
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v2
16-
17-
- name: Set up Rust
18-
uses: actions-rs/toolchain@v1
16+
- uses: actions/checkout@v4
17+
- uses: actions-rs/toolchain@v1
1918
with:
2019
toolchain: stable
21-
22-
- name: Build
23-
run: cargo build
24-
25-
- name: Run tests
26-
run: cargo test -- --test-threads=1
20+
- name: Install cargo-nextest
21+
uses: taiki-e/install-action@nextest
22+
- name: Run nextest
23+
run: cargo nextest run

0 commit comments

Comments
 (0)