Skip to content

deps: Upgrade php

deps: Upgrade php #1

Workflow file for this run

name: main
on:
push:
pull_request:
branches: [ main ]
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
name: PHP CS FIXER
steps:
- uses: actions/checkout@v3
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --diff --dry-run
phpunit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [8.1, 8.2, 8.3]
os: [ubuntu-latest, macos-latest, windows-latest]
dependencies: [ 'lowest', 'highest' ]
continue-on-error: ${{ matrix.os == 'windows-latest' && contains(["8.2", "8.3"], matrix.php) }}

Check failure on line 25 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / main

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 25, Col: 24): Unexpected symbol: '['. Located at position 43 within expression: matrix.os == 'windows-latest' && contains(["8.2", "8.3"], matrix.php) .github/workflows/main.yml (Line: 25, Col: 24): Unexpected value '${{ matrix.os == 'windows-latest' && contains(["8.2", "8.3"], matrix.php) }}'
name: PHP ${{ matrix.php }} - OS ${{ matrix.os }} - Dependencies ${{ matrix.dependencies }}
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, zip, rar, bz2
coverage: pcov
tools: composer:v2
- name: Install unrar on Ubuntu with PHP 8.1 & 8.2
run: sudo apt install unrar
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install unrar on MacOS with PHP 8.1 & 8.2
run: brew install rar
if: ${{ matrix.os == 'macos-latest' }}
- name: Validate composer.json
run: composer validate
- uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: "--no-progress --no-suggest"
- name: Run tests
run: ./vendor/bin/phpunit
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=clover.xml -v
if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.php == '8.1' && matrix.dependencies == 'highest' }}