Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 18, 2024
1 parent 65e34ce commit 433eeb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
branches: [ master ]

jobs:
tests:
checks:
runs-on: ubuntu-latest
name: 'Tests'
name: 'Check'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -22,26 +22,27 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: pcov
tools: infection, pint, phpstan

- name: Install dependencies
run: composer install

- name: Check platform requirements
run: composer check-platform-reqs

- name: PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run
- name: Pint
run: pint --test

- name: Infection
run: ./vendor/bin/infection --min-msi=100
run: infection --show-mutations

- name: PHPStan
run: ./vendor/bin/phpstan
run: phpstan
3 changes: 2 additions & 1 deletion infection.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
},
"mutators": {
"@default": true
}
},
"minMsi": 100
}

0 comments on commit 433eeb6

Please sign in to comment.