Switch target crate to sigp's gossipsub implementation (#17) #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test suite | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
cargo-fmt: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
simulations: ["eth_consensus", "censoring", "smoke", "scoring"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get latest version of stable rust | |
run: rustup update stable | |
- name: Check formatting with cargofmt | |
run: cd "${{ matrix.simulations }}" && cargo fmt --all -- --check | |
clippy: | |
needs: cargo-fmt | |
name: clippy | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
simulations: ["eth_consensus", "censoring", "smoke", "scoring"] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install protoc | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y protobuf-compiler | |
- name: Get latest version of stable Rust | |
run: rustup update stable | |
- name: Install Protoc | |
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2 | |
- name: Lint code for quality and style with Clippy | |
run: cd "${{ matrix.simulations }}" && cargo clippy --workspace --tests -- -D warnings | |
- name: Certify Cargo.lock freshness | |
run: cd "${{ matrix.simulations }}" && git diff --exit-code Cargo.lock |