Skip to content

Merge pull request #10 from Swivl/update-github-actions #51

Merge pull request #10 from Swivl/update-github-actions

Merge pull request #10 from Swivl/update-github-actions #51

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
test:
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }}
runs-on: ubuntu-24.04
continue-on-error: ${{ matrix.allowed-to-fail }}
strategy:
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
dependencies: [highest]
allowed-to-fail: [false]
variant: [normal]
include:
- php-version: '8.2'
dependencies: highest
allowed-to-fail: true
variant: 'squizlabs/php_codesniffer:"dev-master"'
- php-version: '8.3'
dependencies: highest
allowed-to-fail: true
variant: 'squizlabs/php_codesniffer:"dev-master"'
- php-version: '8.4'
dependencies: highest
allowed-to-fail: true
variant: 'squizlabs/php_codesniffer:"dev-master"'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: Install variant
if: matrix.variant != 'normal'
run: composer require ${{ matrix.variant }} --no-update
- name: "Install Composer dependencies (${{ matrix.dependencies }})"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --prefer-stable"
- name: Validate composer
run: composer validate --strict --no-check-lock
- name: Check Code Style
run: vendor/bin/phpcs