MeterSphere/.github/workflows/codecov.yml

31 lines
640 B
YAML
Raw Normal View History

2023-05-04 17:53:09 +08:00
on:
push:
branches:
- v3.*
pull_request:
branches:
- v3.*
2023-04-26 17:37:12 +08:00
name: MeterSphere 覆盖率统计
permissions:
pull-requests: write
jobs:
generic_handler:
2023-05-04 17:53:09 +08:00
name: 覆盖率统计
2023-04-26 17:37:12 +08:00
runs-on: ubuntu-latest
steps:
2023-05-04 17:53:09 +08:00
- uses: actions/checkout@v3
2023-04-26 17:37:12 +08:00
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build with Maven
run: mvn -B package --file pom.xml
2023-04-26 17:37:12 +08:00
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
2023-05-04 18:28:22 +08:00
with:
token: ${{ secrets.CODECOV_TOKEN }}