Skip to content

fix(ci): use php 8.1 #783

fix(ci): use php 8.1

fix(ci): use php 8.1 #783

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
ci:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
php-version: [ 8.1, 8.3 ]
steps:
# --------- Setup steps ---------
- name: "Checkout"
uses: actions/checkout@v3
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pcov, xdebug, sodium, fileinfo
- name: "Install dependencies"
uses: ramsey/composer-install@v2
# --------- Run steps ---------
- name: "Unit Tests"
run: "composer test"
- name: "Coding Style"
run: "composer cs-check"
if: matrix.operating-system == 'ubuntu-latest'
- name: "Static code analysis"
run: "composer psalm"
if: matrix.operating-system == 'ubuntu-latest'