Add WT-FROST to the worker gadget #1387
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: [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 |