Skip to content

v4.21.0 (#266)

v4.21.0 (#266) #458

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request: {}
defaults:
run:
shell: bash
jobs:
test:
name: Test PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ["7.3", "7.4", "8.1", "8.2", "8.3"]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: "composer"
- name: Cache Composer packages
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-
- name: Install dependencies
run: |
composer install --prefer-dist --no-progress --no-interaction
- name: Lint and formatting
if: >-
matrix.php == '7.4' ||
matrix.php == '8.1' ||
matrix.php == '8.2' ||
matrix.php == '8.3'
run: |
composer run-script format-check
- name: Test
run: |
composer run-script test