summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2023-08-09 16:02:28 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2023-08-09 16:03:37 +0200
commitb51298ea7ee289a6743c06945397f75162c7e360 (patch)
tree0e252101184be017047514152a5d90c93958a41c /.github
parent2180c17f3869f4182443a711b7fad5875dc772ab (diff)
fix codecoverage never executed
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/post-merge-tasks.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/post-merge-tasks.yml b/.github/workflows/post-merge-tasks.yml
index ea446f0ce..b7447a4dd 100644
--- a/.github/workflows/post-merge-tasks.yml
+++ b/.github/workflows/post-merge-tasks.yml
@@ -7,10 +7,12 @@ jobs:
php:
runs-on: ubuntu-latest
continue-on-error: false
- name: "Coverage: Nextcloud PHP ${{ matrix.php-versions }}"
+ name: "Coverage: Nextcloud ${{ matrix.nextcloud }} PHP ${{ matrix.php-version }}"
strategy:
matrix:
nextcloud: ['stable27']
+ codecoverage: [true]
+ php-version: ["8.1"]
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -18,7 +20,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
- php-version: '8.1'
+ php-version: ${{ matrix.php-version }}
### Back to normal setup
- name: Set up server non MySQL
@@ -39,7 +41,11 @@ jobs:
- name: Prep PHP tests
run: cd ../server/apps/news && make php-test-dependencies
+
- name: Unittests
run: cd ../server/apps/news && make unit-test
+ env:
+ CODECOVERAGE: ${{ matrix.codecoverage }}
+
- name: Upload codecoverage
run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover