diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-05-03 21:10:51 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-05-03 21:26:03 +0200 |
commit | eeb3c15b0522ba06aff5903de2a24007017daf43 (patch) | |
tree | b9a954f8a6fdf4af7bbc4c098a34acc078888f6d /.github | |
parent | 33fe41e86a72f1ba39b4002cb54a62f197da45bd (diff) |
by default don't do codecoverage
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/api-php-tests.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/api-php-tests.yml b/.github/workflows/api-php-tests.yml index b54f8a5a6..6ff32bbb6 100644 --- a/.github/workflows/api-php-tests.yml +++ b/.github/workflows/api-php-tests.yml @@ -13,9 +13,18 @@ jobs: nextcloud: ['stable24'] database: ['sqlite'] experimental: [false] + codecoverage: [false] + include: + - php-versions: 8.0 + nextcloud: stable24 + database: sqlite + experimental: false + codecoverage: true steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 2 # https://github.com/codecov/codecov-action/issues/190#issuecomment-790729633 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -50,6 +59,9 @@ jobs: - name: Unittests working-directory: ../server/apps/news run: make unit-test + env: + CODECOVERAGE: ${{ matrix.codecoverage }} - name: Upload codecoverage + if: ${{ matrix.codecoverage }} working-directory: ../server/apps/news run: bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover -N ${{ github.sha }} |