mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-07 06:56:07 +01:00
feat: nutshell itests (#691)
This commit is contained in:
26
.github/workflows/nutshell_itest.yml
vendored
Normal file
26
.github/workflows/nutshell_itest.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Nutshell integration
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
integration-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Pull and start mint
|
||||
run: |
|
||||
docker run -d -p 3338:3338 --name nutshell -e MINT_LIGHTNING_BACKEND=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:latest poetry run mint
|
||||
- name: Check running containers
|
||||
run: docker ps
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v11
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v6
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Test
|
||||
run: nix develop -i -L .#stable --command just test-nutshell
|
||||
- name: Show logs if tests fail
|
||||
if: failure()
|
||||
run: docker logs nutshell
|
||||
Reference in New Issue
Block a user