2019-11-25 04:48:24 +00:00
|
|
|
name: test-suite
|
|
|
|
|
2020-05-19 03:17:49 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2019-11-25 04:48:24 +00:00
|
|
|
|
|
|
|
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
|
2019-11-27 01:47:46 +00:00
|
|
|
- name: Get latest version of stable Rust
|
|
|
|
run: rustup update stable
|
2019-11-25 04:48:24 +00:00
|
|
|
- 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
|
2019-11-27 01:47:46 +00:00
|
|
|
- name: Get latest version of stable Rust
|
|
|
|
run: rustup update stable
|
2019-11-25 04:48:24 +00:00
|
|
|
- name: Install ganache-cli
|
|
|
|
run: sudo npm install -g ganache-cli
|
|
|
|
- name: Run tests in debug
|
|
|
|
run: make test-debug
|
2020-05-08 23:37:21 +00:00
|
|
|
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
|
2019-11-25 04:48:24 +00:00
|
|
|
ef-tests-ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: cargo-fmt
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-11-27 01:47:46 +00:00
|
|
|
- name: Get latest version of stable Rust
|
|
|
|
run: rustup update stable
|
2019-11-25 04:48:24 +00:00
|
|
|
- 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 .
|
2020-03-30 05:42:03 +00:00
|
|
|
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
|
2020-04-06 10:16:08 +00:00
|
|
|
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
|
2020-04-20 02:35:11 +00:00
|
|
|
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
|
2020-05-05 23:12:28 +00:00
|
|
|
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
|