From 2e40911084799c26294909f87c0b01f08babbdde Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Fri, 22 Mar 2024 13:49:09 +0100 Subject: [PATCH] Split up files --- .github/workflows/mutation-tests-diff.yml | 42 +++++++++++++++++++++++ .github/workflows/mutation-tests.yml | 35 ------------------- 2 files changed, 42 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/mutation-tests-diff.yml diff --git a/.github/workflows/mutation-tests-diff.yml b/.github/workflows/mutation-tests-diff.yml new file mode 100644 index 000000000..8a49fa7c5 --- /dev/null +++ b/.github/workflows/mutation-tests-diff.yml @@ -0,0 +1,42 @@ +# https://help.github.com/en/categories/automating-your-workflow-with-github-actions + +name: "Mutation tests on diff" + +on: + pull_request: + +jobs: + 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 + with: + fetch-depth: 0 + + - name: "Install PHP" + uses: "shivammathur/setup-php@2.29.0" + with: + coverage: "pcov" + php-version: "${{ matrix.php-version }}" + ini-values: memory_limit=-1 + extensions: pdo_sqlite + + - uses: ramsey/composer-install@2.2.0 + 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" diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 1d4d6ebf1..9598f2a73 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -44,38 +44,3 @@ 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/setup-php@2.29.0" - with: - coverage: "pcov" - php-version: "${{ matrix.php-version }}" - ini-values: memory_limit=-1 - extensions: pdo_sqlite - - - uses: ramsey/composer-install@2.2.0 - 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 }}