Fix version issue in lazer publisher and rust sdks (#2955) #31
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: "Hermes Client Rust Test Suite" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/ci-hermes-client-rust.yml | |
- apps/hermes/client/rust/** | |
jobs: | |
lazer-rust-test-suite: | |
name: Hermes Client Rust Test Suite | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: apps/hermes/client/rust/ | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: install taplo | |
run: cargo install --locked [email protected] | |
- name: check Cargo.toml formatting | |
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \; | |
- name: Format check | |
run: cargo fmt --all -- --check | |
if: success() || failure() | |
- name: Clippy check | |
run: cargo clippy -p pyth-hermes-client-rust --all-targets -- --deny warnings | |
if: success() || failure() | |
- name: test | |
run: cargo test -p pyth-hermes-client-rust | |
if: success() || failure() |