Update docker file, use makefile in CI

This commit is contained in:
Paul Hauner
2019-11-23 10:14:26 +11:00
parent be7346d3ea
commit 6b0b76edf4
4 changed files with 44 additions and 44 deletions

View File

@@ -10,7 +10,7 @@ jobs:
- name: Get latest version of stable Rust
run: rustup update stable
- name: Check formatting with cargo fmt
run: cargo fmt --all -- --check
run: make cargo-fmt
release-tests-ubuntu:
runs-on: ubuntu-latest
needs: cargo-fmt
@@ -19,7 +19,7 @@ jobs:
- name: Install ganache-cli
run: sudo npm install -g ganache-cli
- name: Run tests in release
run: cargo test --release --all
run: make test-release
debug-tests-ubuntu:
runs-on: ubuntu-latest
needs: cargo-fmt
@@ -34,9 +34,19 @@ jobs:
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Download test vectors
run: make make-ef-tests
- name: Run eth2.0-spec-tests without fake_crypto
run: cargo test --manifest-path tests/ef_tests/Cargo.toml --release --features ef_tests
- name: Run eth2.0-spec-tests with fake_crypto
run: cargo test --manifest-path tests/ef_tests/Cargo.toml --release --features ef_tests,fake_crypto
- 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 .
install-ubuntu:
runs-on: ubuntu-latest
needs: cargo-fmt
steps:
- uses: actions/checkout@v1
- name: Build using the root Makefile
run: make