Skip to content

Commit

Permalink
Merge pull request #418 from ergebnis/fix/infection
Browse files Browse the repository at this point in the history
Fix: Remove infection/infection
  • Loading branch information
ergebnis-bot committed May 4, 2021
2 parents eb112c6 + f70778e commit f87da6b
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 681 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Expand Up @@ -6,7 +6,6 @@
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/composer-require-checker.json export-ignore
/infection.json export-ignore
/Makefile export-ignore
/phpstan-baseline.neon export-ignore
/phpstan.neon export-ignore
Expand Down
12 changes: 0 additions & 12 deletions .github/CONTRIBUTING.md
Expand Up @@ -82,18 +82,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
1 change: 0 additions & 1 deletion .github/settings.yml
Expand Up @@ -17,7 +17,6 @@ branches:
- "Code Coverage (7.3, locked)"
- "Coding Standards (7.3, locked)"
- "Dependency Analysis (7.3, locked)"
- "Mutation Tests (7.3, locked)"
- "Static Code Analysis (7.3, locked)"
- "Tests (7.3, highest)"
- "Tests (7.3, locked)"
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/integrate.yaml
Expand Up @@ -289,48 +289,6 @@ jobs:
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:
- "7.3"

dependencies:
- "locked"

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

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.11.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.5"
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: "Run mutation tests with Xdebug and infection/infection"
run: "vendor/bin/infection --configuration=infection.json"

merge:
name: "Merge"

Expand All @@ -340,7 +298,6 @@ jobs:
- "code-coverage"
- "coding-standards"
- "dependency-analysis"
- "mutation-tests"
- "static-code-analysis"
- "tests"

Expand Down
5 changes: 0 additions & 5 deletions Makefile
Expand Up @@ -21,11 +21,6 @@ dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-
help: ## Displays this list of targets with descriptions
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: mutation-tests
mutation-tests: vendor ## Runs mutation tests with infection/infection
mkdir -p .build/infection
vendor/bin/infection vendor/bin/infection --configuration=infection.json

.PHONY: static-code-analysis
static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan and vimeo/psalm
mkdir -p .build/phpstan
Expand Down
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -20,7 +20,6 @@
"ergebnis/license": "^1.1.0",
"ergebnis/phpstan-rules": "~0.15.3",
"ergebnis/test-util": "^1.5.0",
"infection/infection": "~0.18.2",
"phpstan/extension-installer": "^1.1.0",
"phpstan/phpstan": "~0.12.85",
"phpstan/phpstan-deprecation-rules": "~0.12.6",
Expand Down

0 comments on commit f87da6b

Please sign in to comment.