From 15c35e3f904656b87cdac857fd0dc2e3d5391bc8 Mon Sep 17 00:00:00 2001 From: Bruno Meilick Date: Sun, 24 Nov 2024 21:41:36 +0000 Subject: [PATCH] :rocket: v5 Signed-off-by: Bruno Meilick --- .github/workflows/pest-tests.yml | 11 +---------- composer.json | 10 +++++----- tests/patch.php | 14 -------------- 3 files changed, 6 insertions(+), 29 deletions(-) delete mode 100644 tests/patch.php diff --git a/.github/workflows/pest-tests.yml b/.github/workflows/pest-tests.yml index 4868606..5089078 100644 --- a/.github/workflows/pest-tests.yml +++ b/.github/workflows/pest-tests.yml @@ -27,13 +27,4 @@ jobs: run: composer install --no-interaction --prefer-dist --optimize-autoloader - name: PEST - run: composer coverage - -# - name: Test & publish code coverage -# uses: paambaati/codeclimate-action@v8.0.0 -# with: -# coverageCommand: composer coverage -# coverageLocations: ${{github.workspace}}/tests/clover.xml:clover -# env: -# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - + run: composer test diff --git a/composer.json b/composer.json index e2da0bc..8d16d68 100644 --- a/composer.json +++ b/composer.json @@ -59,12 +59,12 @@ "spatie/ray": "^1.39" }, "scripts": { - "analyze": "./vendor/bin/phpstan", + "stan": "./vendor/bin/phpstan", "fix": "./vendor/bin/pint", - "test": "./vendor/bin/pest", - "coverage": [ - "php tests/patch.php", - "php ./vendor/bin/pest --coverage --coverage-clover=tests/clover.xml" + "test": [ + "sed -i '' 's/function dump(/function xdump(/g' tests/kirby/config/helpers.php", + "sed -i '' 's/function e(/function xe(/g' tests/kirby/config/helpers.php", + "./vendor/bin/pest" ], "dist": [ "npm run format", diff --git a/tests/patch.php b/tests/patch.php deleted file mode 100644 index c40c073..0000000 --- a/tests/patch.php +++ /dev/null @@ -1,14 +0,0 @@ -