Auto-generated types for standard int/string/uuid objects #30
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: 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.1', '8.2', '8.3' ] | |
symfony: ['6.4.*', '7.0.*'] | |
exclude: | |
- php: '8.1' | |
symfony: '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-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ramsey/composer-install@v3 | |
- run: vendor/bin/ecs | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ramsey/composer-install@v3 | |
- run: vendor/bin/phpstan |