Skip to content

build(deps): bump codecov/codecov-action from 4.0.0 to 4.1.0 in /.github/workflows #1059

build(deps): bump codecov/codecov-action from 4.0.0 to 4.1.0 in /.github/workflows

build(deps): bump codecov/codecov-action from 4.0.0 to 4.1.0 in /.github/workflows #1059

Workflow file for this run

name: Test-Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
pull-requests: write
jobs:
test-suite:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 17
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package -Pcoverage --file pom.xml
- name: Generate JaCoCo badge
id: jacoco
uses: cicirello/jacoco-badge-generator@f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 # v2.11.0
with:
badges-directory: badges
generate-summary: true
generate-coverage-endpoint: true
- name: Log coverage percentages to workflow output
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
- name: Upload JaCoCo coverage report as a workflow artifact
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: jacoco-report
path: target/site/jacoco/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/site/jacoco/jacoco.xml