Fixes from phpstan checks, add PHP CI/CD github action

This commit is contained in:
2026-06-25 14:49:14 +09:00
parent 397fcb25ff
commit 5cba8ca9ac
11 changed files with 431 additions and 124 deletions
@@ -0,0 +1,21 @@
name: Call PHP Static Checks and Tests
run-name: ${{ github.actor }} calls Content.github-actions/php-static-checks-and-tests
on:
workflow_dispatch:
push:
branches: [master, staging, development]
jobs:
call-check-and-build:
# call local if repository name is Composer/CoreLibs-Composer-All.git
uses: ${{ github.repository == 'Composer/CoreLibs-Composer-All' && './.github/workflows/php-static-checks-and-tests.yml' || 'OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1' }}
with:
php-version: '8.4,8.5'
composer-directory: './www'
source-directory: './www'
disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }}
secrets:
opj-package-user: ${{ secrets.OPJ_PACKAGE_USER }}
opj-package-api-key: ${{ secrets.OPJ_PACKAGE_API_KEY }}