Jpom/.github/workflows/codecov.yml
2022-03-03 12:43:31 +08:00

23 lines
514 B
YAML

name: codecov2
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven cobertura
run: mvn cobertura:cobertura -Pcobertura
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2