Fix notification generation logic to prevent duplicate notification #30
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
| name: Validate Pull Requests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'build.gradle.kts' | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.SUBMODULE_TOKEN }} | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run tests | |
| working-directory: ./ | |
| run: | | |
| chmod +x ./gradlew | |
| ./gradlew test | |
| - name: Upload validation HTML report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: validation-report | |
| path: build/test-results/test/TEST-*.xml | |
| - name: Publish validation results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: build/test-results/test/TEST-*.xml | |
| - name: Add comments to a pull request | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: build/test-results/test/TEST-*.xml |