Merge pull request #2927 from mybatis/renovate/maven-3.x #1594
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, pull_request] | |
jobs: | |
build: | |
if: github.repository_owner == 'mybatis' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: zulu | |
- name: Report Coverage to Coveralls for Pull Requests | |
if: github.event_name == 'pull_request' | |
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_NUMBER: ${{ github.event.number }} | |
- name: Report Coverage to Coveralls for General Push | |
if: github.event_name == 'push' | |
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |