Merge pull request #721 from authorjapps/pr-template #437
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: Zerocode TDD CI Build In Action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| version: [8, 11, 17, 21, 23] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setting up JDK ${{ matrix.version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "${{ matrix.version }}" | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Running Kafka | |
| run: docker compose -f docker/compose/kafka-schema-registry.yml up -d && sleep 10 | |
| - name: Running PostgreSQL (to test DB SQL Executor) | |
| run: docker compose -f docker/compose/pg_compose.yml up -d | |
| - name: Building and testing the changes | |
| run: mvn clean test -ntp | |
| - if: always() | |
| name: Junit html report | |
| uses: javiertuya/junit-report-action@v1.3.0 | |
| with: | |
| surefire-files: "**/target/surefire-reports/TEST-*.xml" | |
| report-dir: target/reports | |
| - if: always() | |
| name: Interactive and granular reports | |
| run: cp core/target/*.html target/reports/ && cp core/target/*.csv target/reports/ | |
| - if: always() | |
| name: Publish test report files | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: "test-report-java${{ matrix.version }}" | |
| path: | | |
| target/reports | |
| !target/reports/someFileName.html |