Skip to content

Commit ef24aac

Browse files
committed
update workflows
1 parent 262990c commit ef24aac

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ jobs:
55
runs-on: ${{ matrix.os }}
66
strategy:
77
matrix:
8-
os: [ubuntu-latest]
8+
os: [ubuntu-24.04]
99
php: ["8.4"]
1010
env:
1111
tools: composer
1212
ini-values: default_charset='UTF-8'
13-
key: cache-1690242875644
1413
name: PHP ${{ matrix.php }} test on ${{ matrix.os }}
1514
steps:
1615
- name: Checkout

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ jobs:
55
runs-on: ${{ matrix.os }}
66
strategy:
77
matrix:
8-
os: [ubuntu-latest]
8+
os: [ubuntu-24.04]
99
php: ["8.1", "8.2", "8.3", "8.4"]
10+
include:
11+
- php: "8.1"
12+
infection: "0.29.9"
13+
- php: "8.2"
14+
infection: "latest"
15+
- php: "8.3"
16+
infection: "latest"
17+
- php: "8.4"
18+
infection: "latest"
1019
env:
11-
tools: composer, phpstan
20+
tools: composer, phpstan, infection:${{ matrix.infection }}
1221
ini-values: default_charset='UTF-8'
1322
name: PHP ${{ matrix.php }} test on ${{ matrix.os }}
1423
steps:
@@ -42,3 +51,7 @@ jobs:
4251
run: composer phpstan
4352
- name: Tests (PHPUnit)
4453
run: vendor/bin/phpunit --coverage-xml=build/logs/xml-coverage --log-junit=build/logs/junit.xml
54+
# - name: Mutation testing (Infection)
55+
# env:
56+
# INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
57+
# run: infection --coverage=build/logs --min-covered-msi=90 --threads=$(nproc) --logger-github --only-covered

infection.json.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/infection/infection/0.26.19/resources/schema.json",
2+
"$schema": "https://raw.githubusercontent.com/infection/infection/0.28.1/resources/schema.json",
33
"source": {
44
"directories": [
55
"src/"
@@ -13,6 +13,5 @@
1313
},
1414
"mutators": {
1515
"@default": true
16-
},
17-
"testFrameworkOptions": "--configuration=phpunit-coverage.xml"
16+
}
1817
}

0 commit comments

Comments
 (0)