File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Remote service probe (self-hosted)
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - " src/**"
8+ - " Cargo.toml"
9+ - " Cargo.lock"
10+ pull_request :
11+ branches : [ main ]
12+ workflow_dispatch :
13+
14+ jobs :
15+ probe :
16+ runs-on : [self-hosted, btc-da, linux, x64]
17+ timeout-minutes : 15
18+
19+ env :
20+ RPC_URL : ${{ secrets.RPC_URL }}
21+ RPC_USER : ${{ secrets.RPC_USER }}
22+ RPC_PASSWORD : ${{ secrets.RPC_PASSWORD }}
23+ PODA_URL : ${{ secrets.PODA_URL }}
24+ WALLET : ${{ secrets.WALLET }}
25+
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+
30+ - name : Install Rust
31+ uses : dtolnay/rust-toolchain@stable
32+ with :
33+ components : clippy,rustfmt
34+
35+ - name : Cache cargo
36+ uses : actions/cache@v4
37+ with :
38+ path : |
39+ ~/.cargo/registry
40+ ~/.cargo/git
41+ target
42+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
43+ restore-keys : |
44+ ${{ runner.os }}-cargo-
45+
46+ - name : Build
47+ run : cargo build --locked --workspace --all-targets --verbose
48+
49+ - name : Lint
50+ run : |
51+ cargo fmt --all -- --check
52+ cargo clippy --workspace --all-targets -- -D warnings
53+
54+ - name : e2e test
55+ run : cargo run --locked --bin main
You can’t perform that action at this time.
0 commit comments