Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Apr 19, 2024
1 parent f850231 commit 5bd74a0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@ jobs:
- operating-system: 'ubuntu-latest'
php-version: '8.2'

- operating-system: 'ubuntu-latest'
php-version: '8.3'

- operating-system: 'ubuntu-latest'
php-version: '8.4'
static-analysis: none
style-fix: none
composer-require-checker-version: none

- operating-system: 'windows-latest'
php-version: '8.1'
php-version: '8.3'
job-description: 'on Windows'

- operating-system: 'macos-latest'
php-version: '8.1'
php-version: '8.3'
job-description: 'on macOS'

name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}
Expand Down Expand Up @@ -72,12 +81,13 @@ jobs:

- name: Run static analysis
run: vendor/bin/psalm.phar
if: matrix.static-analysis != 'none'

- name: Run style fixer
env:
PHP_CS_FIXER_IGNORE_ENV: 1
run: vendor/bin/php-cs-fixer --diff --dry-run -v fix
if: runner.os != 'Windows'
if: runner.os != 'Windows' && matrix.style-fix != 'none'

- name: Install composer-require-checker
run: php -r 'file_put_contents("composer-require-checker.phar", file_get_contents("https://github.com/maglnet/ComposerRequireChecker/releases/download/3.7.0/composer-require-checker.phar"));'
Expand Down

0 comments on commit 5bd74a0

Please sign in to comment.