Skip to content

#1800

Workflow file for this run

# Original Author -> Harry Yang (taketoday@foxmail.com) https://taketoday.cn
# Copyright © TODAY & 2017 - 2021 All Rights Reserved.
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see [http://www.gnu.org/licenses/]
name: Coveralls
on:
push:
branches:
- master
pull_request:
branches:
- master
- 'dev/**'
- 'fix/**'
- 'feat/**'
- 'feature/**'
jobs:
code-coverage:
if: github.repository_owner == 'TAKETODAY'
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4.1.2
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: adopt
- name: Setup Gradle
uses: gradle/gradle-build-action@v3.1.0
- 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: 'infra-build/infra-code-coverage/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml'
format: jacoco