mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
61e75c49fe
* build: fix coverage workflow * Skipping some tests under the auth package on Mac * build: fix test imports
26 lines
666 B
YAML
26 lines
666 B
YAML
name: Coverage
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
push:
|
|
branches: [master, develop]
|
|
jobs:
|
|
calculate-coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up JDK 8
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: "8"
|
|
distribution: "adopt"
|
|
cache: "maven"
|
|
- name: Generate coverage report
|
|
run: mvn -B test -T 2C --file pom.xml
|
|
- name: Upload to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
fail_ci_if_error: true
|
|
verbose: true
|
|
token: cf0cba0a-22f8-4580-89ab-4f1dec3bda6f
|