Skip to content

Macro all proposal creation hooks, fix build issues (#727) #1413

Macro all proposal creation hooks, fix build issues (#727)

Macro all proposal creation hooks, fix build issues (#727) #1413

Workflow file for this run

name: Unit Tests
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git
jobs:
# dkg-substrate base unit tests
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: "true"
- name: Clear up disk space (2)
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get clean
- name: Checkout Sources
uses: actions/checkout@v3
- name: Restore Cache
if: always()
uses: actions/cache/restore@v3
with:
path: |
~/.cargo/registry
target/release
target/debug
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-tests
- name: Install Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy
targets: wasm32-unknown-unknown
- name: Install cargo-nextest
run: cargo +stable install cargo-nextest
- name: Install Protobuf
run: sudo apt-get install protobuf-compiler
- name: Run tests
run: cargo nextest run
- name: Save Cache
if: always()
uses: actions/cache/save@v3
with:
path: |
~/.cargo/registry
target/release
target/debug
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-tests