fix: resolve approved issues - batch 2 verified by weighted adversari… #3
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: Integration Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Updating runner | |
| run: sudo apt-get update | |
| - name: Setup JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build and run integration tests | |
| run: | | |
| mvn -U clean verify -Pintegration-tests \ | |
| -DskipUnitTests=false \ | |
| -Dgroups=integration | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-test-results | |
| path: | | |
| **/target/failsafe-reports/ | |
| **/target/surefire-reports/ | |
| - name: Publish test report | |
| if: always() | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| files: | | |
| **/target/failsafe-reports/TEST-*.xml | |
| **/target/surefire-reports/TEST-*.xml | |
| check_name: Integration Test Results | |
| - name: Comment PR with test results | |
| if: github.event_name == 'pull_request' && always() | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| let testSummary = '## Integration Test Results\n\n'; | |
| testSummary += '✓ Integration tests completed\n\n'; | |
| testSummary += 'See artifacts for detailed test reports.'; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: testSummary | |
| }); |