Skip to content

Commit

Permalink
Add workflow for runnning infection on diff with higher msi and cover…
Browse files Browse the repository at this point in the history
…ed msi requirements
  • Loading branch information
DanielBadura committed Mar 22, 2024
1 parent 8556e0b commit 94c5f3e
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 190 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,38 @@ jobs:
run: "vendor/bin/roave-infection-static-analysis-plugin"
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

mutation-tests-diff:
name: "Mutation tests on diff"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.3"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_sqlite

- uses: ramsey/[email protected]
with:
dependency-versions: ${{ matrix.dependencies }}

- name: "Infection"
run: "vendor/bin/roave-infection-static-analysis-plugin --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --only-covered --min-msi=80 --min-covered-msi=100"
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"ext-pdo_sqlite": "~8.1.0 || ~8.2.0 || ~8.3.0",
"cspray/phinal": "^2.0.0",
"doctrine/orm": "^2.18.0|^3.0.0",
"infection/infection": "^0.27.0",
"infection/infection": "^0.27.10",
"league/commonmark": "^2.4",
"patchlevel/coding-standard": "^1.3.0",
"patchlevel/event-sourcing-psalm-plugin": "^2.1.0",
Expand Down
Loading

0 comments on commit 94c5f3e

Please sign in to comment.