ci: add integration test #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: Set up direnv | |
| uses: direnv/direnv-action@v2 | |
| - name: Configure direnv and run tests | |
| working-directory: ../rust-bitcoinkernel | |
| run: | | |
| echo "use flake ../devazoa#rust-bitcoinkernel" > .envrc | |
| direnv allow | |
| direnv exec . cargo test --all | |