diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coverage.yml similarity index 86% rename from .github/workflows/coveralls.yml rename to .github/workflows/coverage.yml index 8ce69b4d5..b956916bd 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coverage.yml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Coveralls +name: Coverage on: [push, pull_request] @@ -39,9 +39,9 @@ jobs: distribution: adopt java-version: ${{ matrix.java }} - name: Build with Maven - run: mvn -V test --file pom.xml --no-transfer-progress + run: mvn -V test jacoco:report --file pom.xml --no-transfer-progress - - name: Coveralls - uses: coverallsapp/github-action@1.1.3 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + files: ./target/site/jacoco/jacoco.xml