Skip to content

Commit 4ed0363

Browse files
authored
Merge pull request #1180 from openmina/dw/ci-tx-fuzzing-check
CI/lint: move tx fuzzer lint to lint.yaml
2 parents 11ae28c + 2d758d1 commit 4ed0363

File tree

3 files changed

+35
-26
lines changed

3 files changed

+35
-26
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,6 @@ jobs:
100100
cd vrf
101101
cargo test --release -- -Z unstable-options --report-time
102102
103-
tx-fuzzer-check:
104-
runs-on: ubuntu-22.04
105-
steps:
106-
- name: Git checkout
107-
uses: actions/checkout@v4
108-
- name: Setup build dependencies
109-
run: |
110-
sudo apt update
111-
sudo apt install -y protobuf-compiler
112-
- name: Setup Rust
113-
run: |
114-
rustup install nightly
115-
rustup override set nightly
116-
rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
117-
- name: Check for compilation errors in transaction fuzzer
118-
run: |
119-
cd tools/fuzzing
120-
cargo check
121-
122103
p2p-tests:
123104
runs-on: ubuntu-22.04
124105
steps:

.github/workflows/lint.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,43 @@ on:
77

88
jobs:
99
lint:
10-
name: Lint
11-
runs-on: ubuntu-latest
10+
name: Lint - ${{ matrix.os }} - Rust ${{ matrix.toolchain }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
toolchain: [1.84]
1216
steps:
1317
- uses: actions/checkout@v4
1418
- name: Setup build dependencies
1519
run: |
16-
sudo apt update
17-
sudo apt install -y protobuf-compiler
20+
sudo apt update || true
21+
sudo apt install -y protobuf-compiler || true
1822
- uses: dtolnay/rust-toolchain@stable
1923
with:
20-
toolchain: 1.84
24+
toolchain: ${{ matrix.toolchain }}
2125
components: clippy, rustfmt
22-
- name: check
26+
- name: Run make check
2327
run: make check
24-
- name: clippy
28+
- name: Run make lint
2529
run: make lint
30+
31+
lint-tx-fuzzing:
32+
name: Lint transaction Fuzzing - ${{ matrix.os }} - Rust ${{ matrix.toolchain }}
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest]
37+
toolchain: [nightly]
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Setup build dependencies
41+
run: |
42+
sudo apt update || true
43+
sudo apt install -y protobuf-compiler || true
44+
- uses: dtolnay/rust-toolchain@stable
45+
with:
46+
toolchain: ${{ matrix.toolchain }}
47+
components: clippy, rustfmt
48+
- name: Run transaction Fuzzing check
49+
run: make check-tx-fuzzing

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build-wasm: ## Build WebAssembly node
2424
check: ## Check code for compilation errors
2525
cargo check --all-targets
2626

27+
.PHONY: check-tx-fuzzing
28+
check-tx-fuzzing: ## Check the transaction fuzzing tools, requires nightly Rust
29+
@cd tools/fuzzing && cargo +nightly check
30+
2731
.PHONY: check-format
2832
check-format: ## Check code formatting
2933
cargo +nightly fmt -- --check

0 commit comments

Comments
 (0)