deps: Upgrade php #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / mainInvalid workflow file
|
||
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' }} |