From 1756956963c1411d91efe771e9a0eb9ce3397081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 7 Jul 2023 20:43:03 -0300 Subject: [PATCH] Remove Infection cli option that skips initial tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let the Infection collect the code coverage data. Signed-off-by: MaurĂ­cio Meneghini Fauth --- .github/workflows/mutation-tests.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 64f5629f89..9fcfd6793d 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -60,22 +60,18 @@ jobs: with: dependency-versions: highest - - name: Collect coverage report - run: composer run phpunit -- --testsuite unit --stop-on-failure - - name: Run Infection for changed files only if: github.event_name == 'push' || github.event_name == 'pull_request' run: | if [ "$GITHUB_EVENT_NAME" = "push" ]; then \ INFECTION_GIT_DIFF_BASE="origin/$GITHUB_REF_NAME^"; else \ INFECTION_GIT_DIFF_BASE="origin/$GITHUB_BASE_REF"; fi - infection -j$(nproc) --git-diff-lines --git-diff-base="$INFECTION_GIT_DIFF_BASE" \ - --logger-github --ignore-msi-with-no-mutations --only-covered \ - --skip-initial-tests --coverage=build/logs --no-interaction --no-progress + infection --threads=max --git-diff-lines --git-diff-base="$INFECTION_GIT_DIFF_BASE" \ + --logger-github --ignore-msi-with-no-mutations --only-covered --no-interaction --no-progress - name: Run Infection for all files if: github.event_name == 'schedule' timeout-minutes: 360 env: INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }} - run: infection -j$(nproc) --skip-initial-tests --coverage=build/logs --no-interaction --no-progress --only-covering-test-cases + run: infection --threads=max --no-interaction --no-progress --only-covering-test-cases