From 556a2efc6ecebda8073c644f62f0d66740881cbb Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 4 Aug 2024 10:02:02 +0200 Subject: [PATCH] Exclude assets from classmaps (#393) * Exclude assets from classmaps * Fix incompatibility between psalm and php-parser * Set Codecov token --- .github/workflows/continuous-integration.yml | 4 +++- composer.json | 6 +++++- phpunit.xml.dist | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 54f2a2ce..cc8e0ad3 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -154,11 +154,13 @@ jobs: - name: "List all coverage reports" run: echo coverage_reports=./coverage/$(ls -m coverage/ | sed "s/, */,.\/coverage\//g") >> $GITHUB_ENV - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: files: ./coverage.xml,${{ env.coverage_reports }} fail_ci_if_error: true verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} analysis: name: "Static Analysis" diff --git a/composer.json b/composer.json index 16db14de..6c7d076e 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,11 @@ "autoload-dev": { "psr-4": { "Churn\\Tests\\": "tests" - } + }, + "exclude-from-classmap": [ + "/tests/Unit/Assets", + "/tests/Unit/Assets2" + ] }, "bin": [ "bin/churn" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 01e06e48..85baba37 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -25,5 +25,6 @@ +