From efb12d0f7ea0fdb38f70154f154d8fe8750ad377 Mon Sep 17 00:00:00 2001 From: Markus Heck <51326311+Glutamat42@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:11:10 +0200 Subject: [PATCH] Update moodle-ci.yml --- .github/workflows/moodle-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 61e8f4d..587d058 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -132,28 +132,27 @@ jobs: - name: PHPUnit tests if: ${{ always() }} run: | - ls -lha - moodle-plugin-ci phpunit --fail-on-warning --coverage-clover --testdox --coverage-pcov --coverage-text -vvv - ls -lha + cd moodle + php -d pcov.enabled=1 -d pcov.directory=. vendor/bin/phpunit --coverage-text --configuration local/adler --testdox --coverage-clover ../coverage.xml + # moodle-plugin-ci phpunit --fail-on-warning --coverage-clover --testdox --coverage-pcov --coverage-text -vvv - name: Coveralls upload continue-on-error: true env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_PARALLEL: false + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: ${{ matrix.php == '8.1' && matrix.moodle-branch == 'MOODLE_401_STABLE' && matrix.database == 'mariadb' }} run: | - #moodle-plugin-ci coveralls-upload + moodle-plugin-ci coveralls-upload #cat /home/runner/work/MoodlePluginLocal/MoodlePluginLocal/moodle/local/adler/build/logs/coveralls-upload.json # cd moodle # composer require php-coveralls/php-coveralls # # php-coveralls has to be executed from a directory that is a git repository (branch detection) - cd moodle/local/adler + #cd moodle/local/adler # # workaround for https://github.com/php-coveralls/php-coveralls/issues/358 # unset GITHUB_ACTIONS - composer require php-coveralls/php-coveralls - php vendor/bin/php-coveralls --coverage_clover=../../../coverage.xml -v --json_path coveralls_upload.json --exclude-no-stmt + #composer require php-coveralls/php-coveralls + #php vendor/bin/php-coveralls --coverage_clover=../../../coverage.xml -v --json_path coveralls_upload.json --exclude-no-stmt # There are no behat tests # - name: Behat features