Skip to content

Commit

Permalink
Exclude assets from classmaps (#393)
Browse files Browse the repository at this point in the history
* Exclude assets from classmaps

* Fix incompatibility between psalm and php-parser

* Set Codecov token
  • Loading branch information
villfa authored Aug 4, 2024
1 parent f072536 commit 556a2ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
"autoload-dev": {
"psr-4": {
"Churn\\Tests\\": "tests"
}
},
"exclude-from-classmap": [
"/tests/Unit/Assets",
"/tests/Unit/Assets2"
]
},
"bin": [
"bin/churn"
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
</coverage>
<php>
<env name="SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT" value="1" />
<env name="SYMFONY_PHPUNIT_REQUIRE" value="nikic/php-parser:^4.19"/>
</php>
</phpunit>

0 comments on commit 556a2ef

Please sign in to comment.