Visitar URL original
Remove Infection cli option that skips initial tests · phpmyadmin/phpmyadmin@1756956 · GitHub
Skip to content

Commit 1756956

Browse files
committed
Remove Infection cli option that skips initial tests
Let the Infection collect the code coverage data. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 10ec8d8 commit 1756956

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎.github/workflows/mutation-tests.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,18 @@ jobs:
6060
with:
6161
dependency-versions: highest
6262

63-
- name: Collect coverage report
64-
run: composer run phpunit -- --testsuite unit --stop-on-failure
65-
6663
- name: Run Infection for changed files only
6764
if: github.event_name == 'push' || github.event_name == 'pull_request'
6865
run: |
6966
if [ "$GITHUB_EVENT_NAME" = "push" ]; then \
7067
INFECTION_GIT_DIFF_BASE="origin/$GITHUB_REF_NAME^"; else \
7168
INFECTION_GIT_DIFF_BASE="origin/$GITHUB_BASE_REF"; fi
72-
infection -j$(nproc) --git-diff-lines --git-diff-base="$INFECTION_GIT_DIFF_BASE" \
73-
--logger-github --ignore-msi-with-no-mutations --only-covered \
74-
--skip-initial-tests --coverage=build/logs --no-interaction --no-progress
69+
infection --threads=max --git-diff-lines --git-diff-base="$INFECTION_GIT_DIFF_BASE" \
70+
--logger-github --ignore-msi-with-no-mutations --only-covered --no-interaction --no-progress
7571
7672
- name: Run Infection for all files
7773
if: github.event_name == 'schedule'
7874
timeout-minutes: 360
7975
env:
8076
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
81-
run: infection -j$(nproc) --skip-initial-tests --coverage=build/logs --no-interaction --no-progress --only-covering-test-cases
77+
run: infection --threads=max --no-interaction --no-progress --only-covering-test-cases

0 commit comments

Comments
 (0)