nutshell_itest.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. name: Nutshell integration
  2. on: [push, pull_request]
  3. jobs:
  4. nutshell-integration-tests:
  5. name: Nutshell Mint Integration Tests
  6. runs-on: ubuntu-latest
  7. timeout-minutes: 30
  8. steps:
  9. - name: checkout
  10. uses: actions/checkout@v4
  11. - name: Free Disk Space (Ubuntu)
  12. uses: jlumbroso/free-disk-space@main
  13. with:
  14. tool-cache: false
  15. android: true
  16. dotnet: true
  17. haskell: true
  18. large-packages: true
  19. docker-images: true
  20. swap-storage: true
  21. - name: Install Nix
  22. uses: DeterminateSystems/nix-installer-action@v17
  23. - name: Nix Cache
  24. uses: DeterminateSystems/magic-nix-cache-action@main
  25. - name: Rust Cache
  26. uses: Swatinem/rust-cache@v2
  27. - name: Test Nutshell
  28. run: nix develop -i -L .#integration --command just test-nutshell
  29. - name: Show logs if tests fail
  30. if: failure()
  31. run: docker logs nutshell
  32. nutshell-wallet-integration-tests:
  33. name: Nutshell Wallet Integration Tests
  34. runs-on: ubuntu-latest
  35. timeout-minutes: 30
  36. steps:
  37. - name: checkout
  38. uses: actions/checkout@v4
  39. - name: Free Disk Space (Ubuntu)
  40. uses: jlumbroso/free-disk-space@main
  41. with:
  42. tool-cache: false
  43. android: true
  44. dotnet: true
  45. haskell: true
  46. large-packages: true
  47. docker-images: true
  48. swap-storage: true
  49. - name: Pull Nutshell Docker image
  50. run: docker pull cashubtc/nutshell:latest
  51. - name: Install Nix
  52. uses: DeterminateSystems/nix-installer-action@v17
  53. - name: Nix Cache
  54. uses: DeterminateSystems/magic-nix-cache-action@main
  55. - name: Rust Cache
  56. uses: Swatinem/rust-cache@v2
  57. - name: Test Nutshell Wallet
  58. run: |
  59. nix develop -i -L .#integration --command just nutshell-wallet-itest
  60. - name: Show Docker logs if tests fail
  61. if: failure()
  62. run: docker logs nutshell-wallet || true