338cb2fba7
* Fix parallelism bug in exit processing Also: * Remove parallelism for all other operations except deposit merkle proofs * Improve exit tests * Fix broken attestation test Closes #1090 * Allow for generating block/pre/post states from some unit tests (#1123) * Add post-state checks, comments * Add state_transition_vectors crate * Integrate new testing crate with CI * Add readme * Add additional valid tests * Remove ExitTests (they were moved to new crate) * Small test fixes * Delete incorrect saturating_sub in slash_validator And clean-up the balance increase/decrease functions to look more like the spec. Co-authored-by: Paul Hauner <paul@paulhauner.com>
100 lines
2.8 KiB
YAML
100 lines
2.8 KiB
YAML
name: test-suite
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
cargo-fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Check formatting with cargo fmt
|
|
run: make cargo-fmt
|
|
release-tests-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Install ganache-cli
|
|
run: sudo npm install -g ganache-cli
|
|
- name: Run tests in release
|
|
run: make test-release
|
|
debug-tests-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Install ganache-cli
|
|
run: sudo npm install -g ganache-cli
|
|
- name: Run tests in debug
|
|
run: make test-debug
|
|
state-transition-vectors-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Run state_transition_vectors in release.
|
|
run: make run-state-transition-tests
|
|
ef-tests-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Run eth2.0-spec-tests with and without fake_crypto
|
|
run: make test-ef
|
|
dockerfile-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Build the root Dockerfile
|
|
run: docker build .
|
|
eth1-simulator-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install ganache-cli
|
|
run: sudo npm install -g ganache-cli
|
|
- name: Run the beacon chain sim that starts from an eth1 contract
|
|
run: cargo run --release --bin simulator eth1-sim
|
|
no-eth1-simulator-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install ganache-cli
|
|
run: sudo npm install -g ganache-cli
|
|
- name: Run the beacon chain sim without an eth1 connection
|
|
run: cargo run --release --bin simulator no-eth1-sim
|
|
check-benchmarks:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Typecheck benchmark code without running it
|
|
run: make check-benches
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Lint code for quality and style with Clippy
|
|
run: make lint
|
|
arbitrary-check:
|
|
runs-on: ubuntu-latest
|
|
needs: cargo-fmt
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Validate state_processing feature arbitrary-fuzz
|
|
run: make arbitrary-fuzz
|