Skip to content

New Feature: #[OpenApiSpec] Attribute によるスペック名の宣言的指定 #56

New Feature: #[OpenApiSpec] Attribute によるスペック名の宣言的指定

New Feature: #[OpenApiSpec] Attribute によるスペック名の宣言的指定 #56

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: PHP ${{ matrix.php }} / PHPUnit ${{ matrix.phpunit }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.2'
phpunit: '11'
- php: '8.3'
phpunit: '11'
- php: '8.3'
phpunit: '12'
- php: '8.4'
phpunit: '11'
- php: '8.4'
phpunit: '12'
- php: '8.4'
phpunit: '13'
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Install dependencies (PHPUnit ${{ matrix.phpunit }})
run: |
composer require --dev "phpunit/phpunit:^${{ matrix.phpunit }}.0" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Run tests
run: vendor/bin/phpunit
static-analysis:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run PHPStan
run: vendor/bin/phpstan analyse
code-style:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Check code style
run: vendor/bin/php-cs-fixer fix --dry-run --diff