Skip to content

Commit 3d831c5

Browse files
Make sure to only run unit tests during infection testing
1 parent 0f6b735 commit 3d831c5

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ on:
99

1010
jobs:
1111
unit:
12-
name: "Unit and mutation testing"
13-
runs-on: ${{ matrix.os }}
12+
name: "Unit and mutation testing (PHP ${{ matrix.php-version }})"
13+
runs-on: "ubuntu-22.04"
1414
continue-on-error: true
1515

1616
strategy:
1717
matrix:
18-
os: [ "ubuntu-latest" ]
1918
php-version: [ "7.4", "8.0", "8.1" ]
2019

2120
env:
@@ -44,17 +43,16 @@ jobs:
4443
php vendor/bin/coverage-check coverage/clover.xml ${{ env.MINIMUM_COVERAGE_PERCENTAGE }}
4544
4645
- name: Run mutation tests
47-
run: XDEBUG_MODE=coverage php vendor/bin/infection --show-mutations --min-msi=${{ env.MINIMUM_MSI_PERCENTAGE }} --threads=4
46+
run: XDEBUG_MODE=coverage php vendor/bin/infection --show-mutations --min-msi=${{ env.MINIMUM_MSI_PERCENTAGE }} --threads=4 --test-framework-options="--testsuite unit"
4847

4948

5049
integration:
51-
name: "Integration testing"
52-
runs-on: ${{ matrix.os }}
50+
name: "Integration testing (PHP ${{ matrix.php-version }}, Neo4j ${{ matrix.neo4j-version }})"
51+
runs-on: "ubuntu-22.04"
5352
continue-on-error: true
5453

5554
strategy:
5655
matrix:
57-
os: [ "ubuntu-latest" ]
5856
neo4j-version: ["4.2", "4.3", "4.4"]
5957
php-version: [ "8.1" ]
6058

@@ -96,13 +94,12 @@ jobs:
9694

9795

9896
lint:
99-
name: "Linting"
97+
name: "Linting (PHP ${{ matrix.php-version }})"
10098
runs-on: ${{ matrix.os }}
10199
continue-on-error: true
102100

103101
strategy:
104102
matrix:
105-
os: [ "ubuntu-latest" ]
106103
php-version: [ "8.1" ]
107104

108105
env:

tests/Integration/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)