Skip to content

Commit

Permalink
Create standalone mutation testing workflow
Browse files Browse the repository at this point in the history
Moved Mutation Testing from the 'integrate' workflow to a separate workflow file 'infection.yml'. This decision was made to ensure a better separation of concerns within our workflows and to improve efficiency by reducing the runtime of the 'integrate' workflow.
  • Loading branch information
Spomky committed Mar 30, 2024
1 parent 2a414f4 commit 7c75186
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 28 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Integrate"

on:
push:
branches:
- "*.x"

jobs:
mutation_testing:
name: "5️⃣ Mutation Testing"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"
28 changes: 0 additions & 28 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,34 +145,6 @@ jobs:
- name: "Check coding style"
run: "make ci-cs"

mutation_testing:
name: "5️⃣ Mutation Testing"
needs:
- "byte_level"
- "syntax_errors"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"

rector_checkstyle:
name: "6️⃣ Rector Checkstyle"
needs:
Expand Down

0 comments on commit 7c75186

Please sign in to comment.