feat: Add minimum epoch duration check #896
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: Main | |
on: | |
push: | |
branches: | |
- master | |
- main | |
- release/neutron | |
pull_request: | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
components: clippy | |
profile: minimal | |
override: true | |
- name: Install nightly Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
components: rustfmt | |
profile: minimal | |
override: true | |
# selecting a toolchain should happen before the plugin, as the cache uses the current rustc version as its cache key | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Format | |
run: cargo make fmt | |
- name: Clippy | |
run: cargo make clippy | |
- name: Audit dependencies | |
run: | | |
cargo install --locked cargo-audit | |
cargo make audit |