Skip to content

Commit

Permalink
Tighten low end dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Dec 7, 2023
1 parent 590316f commit e6a6aa5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 35 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,6 @@ jobs:
- name: Run automated tests
run: vendor/bin/phpunit --coverage-text --coverage-xml build/coverage-xml --coverage-cobertura build/cobertura.xml

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: build/cobertura.xml
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '80 90'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
6 changes: 1 addition & 5 deletions bin/prepare-commit
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ export XDEBUG_MODE=coverage
vendor/bin/php-cs-fixer fix
vendor/bin/phpstan

# Clear cache and quarantine manually to avoid locking up with corrupted container
# Clear cache manually to avoid locking up with corrupted container
rm -rf tests/Fixtures/var/cache/test
php -d "zend.assertions=1" vendor/bin/phpunit --testdox --coverage-text \
--coverage-xml=build/coverage/coverage-xml --log-junit=build/coverage/junit.xml

# Run with lower MSI in diff-filter mode as it doesn't include coverage from other tests
#vendor/bin/infection --threads=max --git-diff-filter=AM --min-msi=80 --min-covered-msi=80 \
# --coverage=build/coverage

echo "All good, ready for commit!"
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"ext-mongodb": "*",
"ext-pdo_sqlite": "*",
"ext-zip": "*",
"doctrine/common": "^2.6|^3.3",
"doctrine/common": "^3.4",
"doctrine/doctrine-bundle": "^2.11.1",
"doctrine/orm": "^2.17",
"doctrine/persistence": "^3.0.3",
"doctrine/orm": "^2.17.1",
"doctrine/persistence": "^3.2.0",
"friendsofphp/php-cs-fixer": "^v3.40.0",
"mongodb/mongodb": "^1.12",
"ocramius/package-versions": "^2.8",
Expand All @@ -48,16 +48,16 @@
"phpstan/phpstan-symfony": "^1.3.5",
"phpunit/phpunit": "^10.5.1",
"ruflin/elastica": "^6.2|^7.2",
"symfony/browser-kit": "^6.1.3|^7.0",
"symfony/css-selector": "^6.1.3|^7.0",
"symfony/browser-kit": "^6.3|^7.0",
"symfony/css-selector": "^6.3|^7.0",
"symfony/doctrine-bridge": "^6.3|^7.0",
"symfony/dom-crawler": "^6.3.0|^7.0",
"symfony/intl": "^6.1|^7.0",
"symfony/mime": "^6.2.0|^7.0",
"symfony/dom-crawler": "^6.3|^7.0",
"symfony/intl": "^6.3|^7.0",
"symfony/mime": "^6.3|^7.0",
"symfony/phpunit-bridge": "^6.3|^7.0",
"symfony/twig-bundle": "^6.1.1|^7.0",
"symfony/var-dumper": "^6.3.0|^7.0",
"symfony/yaml": "^6.1.3|^7.0"
"symfony/twig-bundle": "^6.3|^7.0",
"symfony/var-dumper": "^6.3|^7.0",
"symfony/yaml": "^6.3|^7.0"
},
"suggest": {
"doctrine/doctrine-bundle": "For integrated access to Doctrine object managers",
Expand Down

0 comments on commit e6a6aa5

Please sign in to comment.