Skip to content

Allow dev accounts to be used as miners (#65) #314

Allow dev accounts to be used as miners (#65)

Allow dev accounts to be used as miners (#65) #314

---
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
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: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: true
- name: Run fmt
run: cargo fmt --all
# - name: Run clippy
# run: cargo clippy --all-targets -- --no-deps -D warnings
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: Run tests
run: cargo test