EC-CUBE4.3対応 #19
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: PHPStan | ||
on: [workflow_dispatch, pull_request] | ||
env: | ||
PLUGIN_CODE: ResizeImage42 | ||
WORKING_DIRECTORY: 'ec-cube' | ||
jobs: | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
eccube-versions: ['4.2', '4.3'] | ||
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | ||
exclude: | ||
- eccube-versions: 4.2 | ||
php-versions: 8.2 | ||
- eccube-versions: 4.2 | ||
php-versions: 8.3 | ||
- eccube-versions: 4.3 | ||
php-versions: 7.4 | ||
- eccube-versions: 4.3 | ||
php-versions: 8.0 | ||
steps: | ||
- name: Checkout EC-CUBE | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: EC-CUBE/ec-cube | ||
ref: ${{ matrix.eccube-versions }} | ||
path: ${{ env.WORKING_DIRECTORY }} | ||
- name: Setup PHP, with composer and extensions | ||
uses: shivammathur/setup-php@master #https://github.com/shivammathur/setup-php | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, xml, ctype, iconv, mysql, intl, :xdebug | ||
tools: composer:v2 | ||
- name: Checkout | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
uses: actions/checkout@v3 | ||
Check failure on line 42 in .github/workflows/phpstan.yaml GitHub Actions / PHPStanInvalid workflow file
|
||
with: | ||
path: app/Plugin/${{ env.PLUGIN_CODE }} | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Initialize Composer | ||
uses: ./.github/actions/composer | ||
- name: PHPStan | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: | | ||
composer require phpstan/phpstan --dev | ||
./vendor/bin/phpstan analyze app/Plugin/${{ env.PLUGIN_CODE }} -c "app/Plugin/${{ env.PLUGIN_CODE }}/phpstan.neon" --error-format=github |