diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45eee5e..de1d2db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: build on: push - + jobs: set_status_in_progress: name: set_status_in_progress @@ -20,6 +20,24 @@ jobs: with: module_build: true runner: biggy-tide + phpunit_coverage: + name: phpunit_coverage + needs: tide_build + runs-on: biggy-tide + steps: + - name: Change to project directory + run: cd $GITHUB_WORKSPACE + - name: Debug information + run: | + pwd + ls -la + ls -la dpc-sdp + which phpunit + which phpdbg + phpunit --version + - name: Run PHPUnit with coverage using phpdbg + run: | + phpdbg -qrr /app/vendor/bin/phpunit /app/dpc-sdp --coverage-html /app/phpunit/coverage-report export_config: name: export_config secrets: inherit diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..cdb5911 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +coverage: + status: + project: + default: + target: 80% + threshold: 5% + patch: + default: + target: 80%