Bump codecov/codecov-action from 5 to 6 (#26) #71
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: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn -B clean install -DskipTests | |
| - name: Run tests | |
| run: mvn -B test | |
| - name: Generate coverage report | |
| run: mvn -B jacoco:report | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: ./target/site/jacoco/jacoco.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| - name: Build Docker image | |
| run: docker build -t contract-first-integrations:${{ github.sha }} . | |
| - name: Archive JAR | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: contract-first-integrations-jar | |
| path: target/*.jar | |
| retention-days: 7 |