Skip to content

Commit

Permalink
Update CI jobs to use PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsapone committed Nov 27, 2023
1 parent 771d84b commit 76dbff4
Showing 1 changed file with 67 additions and 18 deletions.
85 changes: 67 additions & 18 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,87 @@ on:
- 4.x

jobs:
tests:
name: "CI ${{ matrix.operating-system }} / PHP ${{ matrix.php-version }}"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'macos-latest']
php-version: ['8.1', '8.2']
php-cs-fixer:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/checkout@v4

- name: Install PHP
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
php-version: 8.3
coverage: none

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}

- name: Test PHP-CS-Fixer
run: PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer fix --dry-run --diff --no-ansi
- name: PHP-CS-Fixer
run: php vendor/bin/php-cs-fixer fix --dry-run --diff --no-ansi

phpstan:
runs-on: ubuntu-latest

- name: Test PHPStan
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}

- name: PHPStan
run: php vendor/bin/phpstan analyse

- name: Test Rector
run: php vendor/bin/rector process --ansi
rector:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}

- name: RectorPHP
run: php vendor/bin/rector process --dry-run

phpunit:
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-version: [ '8.1', '8.2', '8.3' ]

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

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}

- name: Test PHPUnit
run: php vendor/bin/phpunit

0 comments on commit 76dbff4

Please sign in to comment.