4.x: Detect un-awaited CompletionStageDisposables during tests #800
Workflow file for this run
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
| # This workflow will build a Java project with Gradle | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
| name: Pull Request | |
| on: | |
| pull_request: | |
| branches: [ 4.x ] | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up JDK 26 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '26' | |
| - name: Cache Gradle packages | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-1-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: ${{ runner.os }}-gradle-1- | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run Validity Tests Upfront | |
| run: ./gradlew test --tests "io.reactivex.rxjava4.validators.*" --stacktrace --no-daemon | |
| - name: Build RxJava | |
| run: ./gradlew build --stacktrace | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2.23.0 | |
| if: always() # important: run even if tests failed | |
| with: | |
| files: | | |
| **/build/test-results/**/TEST-*.xml | |
| **/build/test-results/**/*.xml | |
| **/build/test-results/testNG/TEST-*.xml | |
| comment_mode: failures | |
| fail_on: test failures | |
| check_name: "🧪 RxJava Test Results" | |
| report_individual_runs: true | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| - name: Generate Javadoc | |
| run: ./gradlew javadoc --stacktrace |