Skip to content

Commit

Permalink
Update CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Feb 17, 2023
1 parent b4554d0 commit d66e3df
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,49 @@ jobs:
- operating-system: 'ubuntu-latest'
php-version: '8.1'
php-ts: nts
continue-on-error: false

- operating-system: 'ubuntu-latest'
php-version: '8.2'
php-ts: nts
continue-on-error: false

- operating-system: 'ubuntu-latest'
php-version: '8.1'
php-extensions: parallel
job-description: 'with ext-parallel'
php-ts: ts
continue-on-error: true

- operating-system: 'ubuntu-latest'
php-version: '8.2'
php-extensions: parallel
job-description: 'with ext-parallel'
php-ts: ts
continue-on-error: true

- operating-system: 'ubuntu-latest'
php-version: '8.3'
php-extensions: parallel
job-description: 'with ext-parallel'
php-ts: ts
static-analysis: none
style-fix: none
composer-require-checker-version: none
continue-on-error: true

- operating-system: 'macos-latest'
php-version: '8.2'
job-description: 'on macOS'
php-ts: nts
continue-on-error: false

name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}

runs-on: ${{ matrix.operating-system }}

continue-on-error: ${{ matrix.continue-on-error }}

steps:
- name: Set git to use LF
run: |
Expand Down Expand Up @@ -79,12 +103,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 d66e3df

Please sign in to comment.