22 lines
850 B
YAML
22 lines
850 B
YAML
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 }}
|
|
|