Skip to content

Commit

Permalink
Merge pull request #355 from Lctrs/fix/argument-resolving
Browse files Browse the repository at this point in the history
fix(checker): fix argument type resolving
  • Loading branch information
Lctrs committed Dec 2, 2021
2 parents 47985fe + 4e631d1 commit 1d82e18
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 3,142 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Expand Up @@ -8,7 +8,6 @@
/.yamllint.yaml export-ignore
/composer-require-checker.json export-ignore
/composer.lock export-ignore
/infection.json.dist export-ignore
/Makefile export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
Expand Down
12 changes: 0 additions & 12 deletions .github/CONTRIBUTING.md
Expand Up @@ -74,18 +74,6 @@ make tests

to run all the tests.

## Mutation Tests

We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.

Enable `pcov` or `Xdebug` and run

```sh
make mutation-tests
```

to run mutation tests.

## Extra lazy?

Run
Expand Down
12 changes: 0 additions & 12 deletions .github/dependabot.yaml
Expand Up @@ -15,18 +15,6 @@ updates:
interval: "daily"
versioning-strategy: "increase"

- commit-message:
include: "scope"
prefix: "tools"
directory: "/.tools/infection"
labels:
- "dependency"
open-pull-requests-limit: 10
package-ecosystem: "composer"
schedule:
interval: "daily"
versioning-strategy: "increase"

- commit-message:
include: "scope"
prefix: "composer"
Expand Down
2 changes: 0 additions & 2 deletions .github/settings.yml
Expand Up @@ -14,10 +14,8 @@ branches:
required_approving_review_count: 1
required_status_checks:
contexts:
- "Code Coverage (8.1, locked)"
- "Coding Standards (8.1, locked)"
- "Dependency Analysis (8.1, locked)"
- "Mutation Tests (8.1, locked)"
- "Static Code Analysis (8.1, locked)"
- "Tests (7.3, highest)"
- "Tests (7.3, locked)"
Expand Down
100 changes: 0 additions & 100 deletions .github/workflows/integrate.yaml
Expand Up @@ -242,103 +242,3 @@ jobs:

- name: "Run integration tests with codeception/codeception"
run: "vendor/bin/codecept run --config=codeception.dist.yml --steps"

code-coverage:
name: "Code Coverage"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "8.1"

dependencies:
- "locked"

steps:
- name: "Checkout"
uses: "actions/checkout@v2.4.0"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.16.0"
with:
coverage: "xdebug"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Set up problem matchers for phpunit/phpunit"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\""

- name: "Determine composer cache directory"
uses: "./.github/actions/composer/composer/determine-cache-directory"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2.1.7"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "./.github/actions/composer/composer/install"
with:
dependencies: "${{ matrix.dependencies }}"

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

- name: "Send code coverage report to Codecov.io"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "bash <(curl -s https://codecov.io/bash)"

mutation-tests:
name: "Mutation Tests"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "8.1"

dependencies:
- "locked"

steps:
- name: "Checkout"
uses: "actions/checkout@v2.4.0"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.16.0"
with:
coverage: "xdebug"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
uses: "./.github/actions/composer/composer/determine-cache-directory"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2.1.7"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock', '.tools/infection/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "./.github/actions/composer/composer/install"
with:
dependencies: "${{ matrix.dependencies }}"

- name: "Install infection/infection with composer"
uses: "./.github/actions/composer/composer/install"
with:
dependencies: "${{ matrix.dependencies }}"
working-directory: ".tools/infection/"

- name: "Run mutation tests with Xdebug and infection/infection"
run: ".tools/infection/vendor/bin/infection --configuration=infection.json.dist --logger-github"
env:
STRYKER_DASHBOARD_API_KEY: "${{ secrets.STRYKER_DASHBOARD_API_KEY }}"
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -3,6 +3,5 @@
/test/*/phpunit.xml
/vendor/
/codeception.yml
/infection.json
/phpcs.xml
/phpstan.neon
6 changes: 0 additions & 6 deletions .tools/infection/composer.json

This file was deleted.

0 comments on commit 1d82e18

Please sign in to comment.