Feat(wallet): Add outgoing payment failure diagnostics #770
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: Server Unit Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| checks: write # Needed for publishing test results | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Setup JDK | |
| uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Make Gradle wrapper executable | |
| run: chmod +x ./server/gradlew | |
| - name: Run tests with Gradle | |
| working-directory: server | |
| run: ./gradlew test | |
| # Coverage bounds live in server/app/build.gradle.kts and fail on regression. | |
| - name: Verify coverage thresholds | |
| working-directory: server | |
| run: ./gradlew :app:koverVerify | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: server-coverage | |
| path: server/app/build/reports/kover/ | |
| retention-days: 7 | |