docs: improve readme #418
Workflow file for this run
This file contains hidden or 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: babylonlabs/finality/local-tests | |
on: | |
pull_request: | |
branches: | |
- '**' | |
permissions: | |
contents: read | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# based on https://github.com/bnjbvr/cargo-machete | |
machete: | |
name: machete | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Machete | |
uses: bnjbvr/cargo-machete@main | |
local-build-test: | |
runs-on: ubuntu-latest | |
container: | |
image: rust:1.86.0 | |
steps: | |
- uses: actions/[email protected] | |
- name: Build contracts, check formats, and run unit tests | |
run: | | |
rustup component add rustfmt | |
cargo fmt -- --check | |
cargo test --lib |