Skip to content

Commit 861501f

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 861501f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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-direnv
26+
uses: JRMurr/[email protected]
27+
28+
- name: Configure direnv and run tests
29+
working-directory: ../rust-bitcoinkernel
30+
run: |
31+
echo "use flake ../devazoa#rust-bitcoinkernel" > .envrc
32+
direnv allow
33+
direnv exec . cargo test --all
34+

0 commit comments

Comments
 (0)