From 49a28d790b1eb319bae0dc062abadc9498a9e670 Mon Sep 17 00:00:00 2001 From: kuadrat Date: Tue, 24 Oct 2023 14:36:54 +0200 Subject: [PATCH] Update upload_to_codecov.yaml --- .github/workflows/upload_to_codecov.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upload_to_codecov.yaml b/.github/workflows/upload_to_codecov.yaml index e420c7d..16a5f68 100644 --- a/.github/workflows/upload_to_codecov.yaml +++ b/.github/workflows/upload_to_codecov.yaml @@ -1,4 +1,13 @@ -- name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} +name: Code Coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubunutu-latest + name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + steps: + - Rscript -e 'library(covr); codecov()'