TracingInterceptor should take effect only one time #292
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Build | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build Java ${{ matrix.java }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
java: | |
- 8 | |
- 11 | |
include: | |
- os: ubuntu-latest | |
java: 11 | |
coverage: true | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache Gradle Modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: gradle-caches-${{ hashFiles('**/*.gradle.kts') }} | |
- name: Cache Gradle Wrapper | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/wrapper | |
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Execute Gradle build | |
run: ./gradlew build ${{ matrix.coverage && 'codeCoverageReport' || '' }} --stacktrace | |
shell: bash | |
env: | |
CI: true | |
- uses: codecov/codecov-action@v1 | |
if: ${{ matrix.coverage }} | |
with: | |
files: ./jacoco/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml | |
- uses: actions/upload-artifact@v2 | |
if: ${{ matrix.coverage }} | |
with: | |
name: coverage-report | |
path: jacoco/build/reports/jacoco/codeCoverageReport/html |