Skip to content

PHP: Add support for PHP 8.3 #80

PHP: Add support for PHP 8.3

PHP: Add support for PHP 8.3 #80

Workflow file for this run

name: Code Analysis
on:
pull_request:
push:
jobs:
code_analysis:
strategy:
fail-fast: false
matrix:
php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
actions:
- name: PHPStan
run: composer phpstan
- name: Unit tests
run: vendor/bin/tester tests -s -C
versions:
- name: newest
arg: ''
experimental: false
- name: lowest
arg: '--prefer-lowest'
experimental: true
name: ${{ matrix.actions.name }} at PHP ${{ matrix.php }} (${{ matrix.versions.name }})
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# see https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json
coverage: none
# see https://github.com/actions/cache/blob/main/examples.md#php---composer
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: |
${{ steps.composer-cache.outputs.dir }}
**/composer.lock
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
- name: Install Composer
run: composer update --no-progress ${{ matrix.versions.arg }}
- run: ${{ matrix.actions.run }}
continue-on-error: ${{ matrix.versions.experimental }}