Skip to content

Commit d10e5e9

Browse files
ci: add workflow for Hermes Rust client
Co-Authored-By: Tejas Badadare <[email protected]>
1 parent d1878cf commit d10e5e9

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Check Hermes Rust Client
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/ci-hermes-client-rust.yml
7+
- apps/hermes/client/rust/**
8+
push:
9+
branches: [main]
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: apps/hermes/client/rust
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: Swatinem/rust-cache@v2
19+
with:
20+
workspaces: "apps/hermes/client/rust -> target"
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: 1.82.0
25+
components: rustfmt, clippy
26+
override: true
27+
- name: Format check
28+
run: cargo fmt --all -- --check
29+
if: success() || failure()
30+
- name: Clippy check
31+
run: cargo clippy --tests -- --deny warnings
32+
if: success() || failure()
33+
- name: Build check
34+
run: cargo build
35+
if: success() || failure()
36+
- name: Run tests
37+
run: cargo test
38+
if: success() || failure()
39+
- name: Build examples
40+
run: cargo build --examples
41+
if: success() || failure()

0 commit comments

Comments
 (0)