From 76dbff463091987ea3b5013ef59d12b1d71c41e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sapone?= Date: Mon, 27 Nov 2023 08:18:48 +0100 Subject: [PATCH] Update CI jobs to use PHP 8.3 --- .github/workflows/continuous-integration.yml | 85 +++++++++++++++----- 1 file changed, 67 insertions(+), 18 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index bd3f992..b54183c 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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