Skip to content

Commit 31c90f0

Browse files
add ci test
1 parent 183dbbf commit 31c90f0

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

0 commit comments

Comments
 (0)