Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 4, 2025
1 parent d214628 commit b692930
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
php: ["8.4"]
env:
tools: composer
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
php: ["8.1", "8.2", "8.3", "8.4"]
include:
- php: "8.1"
infection: "0.29.9"
- php: "8.2"
infection: "latest"
- php: "8.3"
infection: "latest"
- php: "8.4"
infection: "latest"
env:
tools: composer, phpstan, infection
tools: composer, phpstan, infection:${{ matrix.infection }}
ini-values: default_charset='UTF-8'
name: PHP ${{ matrix.php }} test on ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -39,13 +48,10 @@ jobs:
- name: Install dependencies
run: composer install --no-progress
- name: Run PHPStan
run: phpstan analyse src -l 9
- name: Setup demo
run: php demo/demo.php
run: composer phpstan
- name: Tests (PHPUnit)
run: vendor/bin/phpunit --coverage-xml=build/logs/xml-coverage --log-junit=build/logs/junit.xml
- name: Mutation testing (Infection)
if: ${{ matrix.php >= '8.1' }}
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
run: infection --coverage=build/logs --min-covered-msi=90 --threads=$(nproc) --logger-github --only-covered

0 comments on commit b692930

Please sign in to comment.