Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Enhancement: Synchronize with ergebnis/php-library-template
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 29, 2020
1 parent 2e1d5f9 commit f2de3e4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
5 changes: 0 additions & 5 deletions .github/actions/composer/composer/install/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ inputs:
dependencies:
description: "Which dependencies to install, one of \"lowest\", \"locked\", \"highest\""
required: true
working-dir:
description: "Working direWhich dependencies to install, one of \"lowest\", \"locked\", \"highest\""
required: false
default: "."

runs:
using: "composite"
Expand All @@ -24,4 +20,3 @@ runs:
run: "${{ github.action_path }}/run.sh"
env:
COMPOSER_INSTALL_DEPENDENCIES: "${{ inputs.dependencies }}"
COMPOSER_WORKING_DIR: "${{ inputs.working-dir }}"
13 changes: 5 additions & 8 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ jobs:
- name: "Install PHP with extensions"
uses: "shivammathur/[email protected]"
with:
coverage: "xdebug"
coverage: "pcov"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

Expand All @@ -287,11 +287,8 @@ jobs:
with:
dependencies: "${{ matrix.dependencies }}"

- name: "Dump Xdebug filter with phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php"

- name: "Collect code coverage with Xdebug and phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php"
- name: "Collect code coverage with pcov and phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml"

- name: "Send code coverage report to Codecov.io"
env:
Expand All @@ -318,7 +315,7 @@ jobs:
- name: "Install PHP with extensions"
uses: "shivammathur/[email protected]"
with:
coverage: "xdebug"
coverage: "pcov"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

Expand All @@ -337,7 +334,7 @@ jobs:
with:
dependencies: "${{ matrix.dependencies }}"

- name: "Run mutation tests with Xdebug and infection/infection"
- name: "Run mutation tests with pcov and infection/infection"
run: "vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=${{ env.MIN_COVERED_MSI }} --min-msi=${{ env.MIN_MSI }}"

merge:
Expand Down
36 changes: 18 additions & 18 deletions composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"symbol-whitelist": [
"array",
"bool",
"callable",
"false",
"float",
"int",
"iterable",
"null",
"object",
"parent",
"self",
"static",
"string",
"true",
"void",
"PHPUnit\\Framework\\TestCase"
]
"symbol-whitelist": [
"array",
"bool",
"callable",
"false",
"float",
"int",
"iterable",
"null",
"object",
"parent",
"self",
"static",
"string",
"true",
"void",
"PHPUnit\\Framework\\TestCase"
]
}

0 comments on commit f2de3e4

Please sign in to comment.