Skip to content

Simplify configuration #20

Simplify configuration

Simplify configuration #20

Workflow file for this run

name: CI Pipeline
on:
push: ~
pull_request: ~
jobs:
build:
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
strategy:
matrix:
operating-system: [ 'ubuntu-22.04' ]
php: [ '8.2', '8.3' ]
symfony: ['6.4.*', '7.0.*']
steps:
- uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex
coverage: pcov
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v3
- name: Run test suite on PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
run: ./vendor/bin/phpunit --coverage-clover clover.xml
- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false
- name: Git push to image-data branch
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./output
publish_branch: image-data
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
ecs:
name: Easy Coding Standard
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v3
- run: vendor/bin/ecs
phpstan:
name: PHPStan
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v3
- run: vendor/bin/phpstan