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: Coveralls | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- master | |
- 'dev/**' | |
- 'fix/**' | |
- 'feat/**' | |
- 'feature/**' | |
jobs: | |
code-coverage: | |
if: github.repository_owner == 'today-tech' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project sources | |
uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Test Coverage | |
run: ./gradlew -DCI=true --no-daemon --max-workers=4 build --scan --stacktrace | |
- name: Report Coverage to Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: 'build/reports/jacoco/test/jacocoTestReport.xml' | |
format: jacoco |