Add Ethereum components from Frontier #18
Workflow file for this run
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: Unit tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
# TODO: refactor common steps into a workflow | |
jobs: | |
basic-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc compiler | |
shell: bash | |
run: | | |
sudo apt-get install -y protobuf-compiler | |
- name: Checkout Source code | |
uses: actions/checkout@v3 | |
- name: Cache cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
/tmp/academy-pow/target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1 | |
- name: Install Rust toolchain | |
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v1 | |
- name: Run fmt | |
run: make fmt | |
- name: Run clippy | |
run: make clippy | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc compiler | |
shell: bash | |
run: | | |
sudo apt-get install -y protobuf-compiler | |
- name: Checkout Source code | |
uses: actions/checkout@v3 | |
- name: Cache cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
/tmp/academy-pow/target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-v1 | |
- name: Install Rust toolchain | |
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v1 | |
- name: Run tests | |
run: make test |