Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 7, 2024
1 parent 6847d67 commit c388f19
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ 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'
style-fix: none
static-analysis: none

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

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

name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}
Expand Down Expand Up @@ -71,12 +79,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 All @@ -87,7 +96,7 @@ jobs:
if: runner.os != 'Windows' && matrix.composer-require-checker-version != 'none'

- name: Autobahn
if: runner.os == 'Linux' && matrix.php-version == '8.2'
if: runner.os == 'Linux' && matrix.php-version == '8.3'
shell: 'script -q -e -c "bash {0}"'
run: |
docker run -ti -d --rm -v ${PWD}/test-autobahn/config:/config -v ${PWD}/test-autobahn/reports:/reports -p 9001:9001 --name fuzzingserver crossbario/autobahn-testsuite
Expand Down

0 comments on commit c388f19

Please sign in to comment.