Integration test team #253
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ '21' ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build and test | |
run: ./gradlew test jacocoTestReport | |
env: | |
DOCKER_HOST: "unix:///var/run/docker.sock" | |
TESTCONTAINERS_RYUK_DISABLED: "true" | |
- name: Pmd Check | |
run: ./gradlew pmdMain | |
- name: Jacoco Test Coverage Verification | |
run: ./gradlew jacocoTestCoverageVerification | |
- name: Upload code coverage report | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jacoco-report | |
path: build/reports/jacoco/test/html/ | |
- name: Check coverage report | |
if: failure() | |
run: | | |
echo "Coverage verification failed. Check the report for details." | |
cat build/reports/jacoco/test/html/index.html |