Merge pull request #40 from omnia-network/chore/update-dependencies #29
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: Rust tests | |
# only run when a commit is pushed to the main branch | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
rust-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-rust | |
with: | |
cache-key: "build-native" | |
- name: Cargo fmt | |
run: cargo fmt -- --check | |
- name: Cargo clippy | |
run: cargo clippy --all --all-features -- -Dwarnings | |
- name: Run unit tests | |
run: ./scripts/unit_test.sh |