2023-10-26 09:52:12 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- v3.*
|
2024-05-21 11:30:44 +08:00
|
|
|
paths:
|
|
|
|
- "backend/**"
|
|
|
|
- "pom.xml"
|
2023-10-26 09:52:12 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- v3.*
|
2024-05-21 11:30:44 +08:00
|
|
|
paths:
|
|
|
|
- "backend/**"
|
|
|
|
- "pom.xml"
|
2023-10-26 09:52:12 +08:00
|
|
|
|
|
|
|
name: MeterSphere 覆盖率统计
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
generic_handler:
|
|
|
|
name: 覆盖率统计
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 21
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: 21
|
2024-04-22 11:21:25 +08:00
|
|
|
cache: 'maven'
|
|
|
|
cache-dependency-path: '**/pom.xml' # optional
|
|
|
|
check-latest: true
|
2024-10-15 10:41:40 +08:00
|
|
|
|
|
|
|
- name: Remove monitoring-engine JAR
|
|
|
|
run: rm -rf ~/.m2/repository/io/metersphere/monitoring-engine
|
|
|
|
|
2024-04-19 15:07:38 +08:00
|
|
|
- name: Build with Maven - other
|
2024-06-07 15:03:25 +08:00
|
|
|
run: mvn -B package -DskipAntRunForJenkins --file pom.xml -pl '!frontend'
|
2023-10-26 09:52:12 +08:00
|
|
|
- name: Upload coverage reports to Codecov
|
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|