nutshell_itest.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Nutshell integration
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches:
  7. - main
  8. - 'v[0-9]*.[0-9]*.x' # Match version branches like v0.13.x, v1.0.x, etc.
  9. release:
  10. types: [created]
  11. # Cancel previous runs on same PR
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. nutshell-integration-tests:
  17. name: Nutshell Mint Integration Tests
  18. runs-on: self-hosted
  19. timeout-minutes: 30
  20. steps:
  21. - name: checkout
  22. uses: actions/checkout@v4
  23. - uses: cachix/cachix-action@v16
  24. with:
  25. name: cashudevkit
  26. authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
  27. useDaemon: false
  28. continue-on-error: true
  29. - name: Test Nutshell
  30. run: nix develop -i -L .#integration --command just test-nutshell
  31. - name: Show logs if tests fail
  32. if: failure()
  33. run: docker logs nutshell
  34. nutshell-wallet-integration-tests:
  35. name: Nutshell Wallet Integration Tests
  36. runs-on: self-hosted
  37. timeout-minutes: 30
  38. steps:
  39. - name: checkout
  40. uses: actions/checkout@v4
  41. - uses: cachix/cachix-action@v16
  42. with:
  43. name: cashudevkit
  44. authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
  45. useDaemon: false
  46. continue-on-error: true
  47. - name: Test Nutshell Wallet
  48. run: nix develop -i -L .#integration --command just nutshell-wallet-itest
  49. - name: Show Docker logs if tests fail
  50. if: failure()
  51. run: docker logs nutshell-wallet || true