Files
CordysCRM/.github/workflows/codecov.yml
2024-12-25 18:55:38 +08:00

43 lines
938 B
YAML

on:
push:
branches:
- main
paths:
- "backend/**"
- "pom.xml"
pull_request:
branches:
- main
paths:
- "backend/**"
- "pom.xml"
name: Code Coverage
permissions:
pull-requests: write
jobs:
generic_handler:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUBTOKEN }}
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 21
cache: 'maven'
cache-dependency-path: '**/pom.xml' # optional
check-latest: true
- name: Build with Maven - other
run: mvn -B package -DskipAntRunForJenkins --file pom.xml -pl '!frontend'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}