Skip to content

Bump actions/checkout from 3 to 4 (#85) #268

Bump actions/checkout from 3 to 4 (#85)

Bump actions/checkout from 3 to 4 (#85) #268

Workflow file for this run

name: CI
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.2', '8.1', '8.0']
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer install
- name: Run tests
run: |
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml
- uses: codecov/codecov-action@v3
if: matrix.php-version == '8.2'
with:
token: ${{ secrets.CODECOV_TOKEN }}
phpstan:
runs-on: ubuntu-latest
container:
image: jakzal/phpqa:php8.1
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: composer install
- name: PHPStan
run: phpstan analyse
php-cs-fixer:
runs-on: ubuntu-latest
container:
image: jakzal/phpqa:php8.1
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: composer install
- name: PHP-CS-Fixer
run: php-cs-fixer fix