From 0f8d1ad195c3080142c3d8df7a84ad017a17021a Mon Sep 17 00:00:00 2001 From: josibake Date: Sat, 10 May 2025 11:27:55 +0100 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2020af8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: test rust-bitcoinkernel devshell + +on: + push: + branches: [setup-ci] + pull_request: + +jobs: + integration-test: + name: rust-bitcoinkernel (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + + steps: + - name: Checkout devazoa (this repo) + uses: actions/checkout@v4 + + - name: Clone rust-bitcoinkernel + run: | + git clone https://github.com/theCharlatan/rust-bitcoinkernel.git ../rust-bitcoinkernel + + - name: Set up Nix + uses: cachix/install-nix-action@v24 + with: + extra_nix_config: | + experimental-features = nix-command flakes + + - name: Run cargo test inside devshell + working-directory: ../rust-bitcoinkernel + run: | + nix develop ../devazoa#rust-bitcoinkernel --command cargo test --all +