Skip to content

Commit 85fcad0

Browse files
committed
ci: add integration test
tests that the devshell works with rust-bitcoinkernel. this kinda serves as an e2e test since this also utilises the bitcoin-core flake. mainly meant to catch failures on macos since this is the least likely to get tested during development.
1 parent 9cc02a2 commit 85fcad0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: test rust-bitcoinkernel devshell
2+
3+
on:
4+
push:
5+
branches: [setup-ci]
6+
pull_request:
7+
8+
jobs:
9+
integration-test:
10+
name: rust-bitcoinkernel (${{ matrix.os }})
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
17+
steps:
18+
- name: Checkout devazoa (this repo)
19+
uses: actions/checkout@v4
20+
21+
- name: Clone rust-bitcoinkernel
22+
run: |
23+
git clone https://github.com/theCharlatan/rust-bitcoinkernel.git ../rust-bitcoinkernel
24+
25+
- name: Set up Nix
26+
uses: cachix/install-nix-action@v24
27+
with:
28+
extra_nix_config: |
29+
experimental-features = nix-command flakes
30+
31+
- name: Run cargo test inside devshell
32+
working-directory: ../rust-bitcoinkernel
33+
run: |
34+
nix develop ../devazoa#rust-bitcoinkernel --command cargo test --all
35+

0 commit comments

Comments
 (0)