diff --git a/.github/workflows/call-php-static-checks-and-test.yml b/.github/workflows/call-php-static-checks-and-test.yml index fac80d7..5377fd5 100644 --- a/.github/workflows/call-php-static-checks-and-test.yml +++ b/.github/workflows/call-php-static-checks-and-test.yml @@ -7,9 +7,23 @@ on: 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' }} + call-check-and-build-local: + # call local workflow if repository name is NOT CoreLibs-Composer-All + if: github.event.repository.name != 'CoreLibs-Composer-All' + uses: ./.github/workflows/php-static-checks-and-tests.yml + 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 }} + + call-check-and-build-remote: + # call remote workflow if repository name is CoreLibs-Composer-All + if: github.event.repository.name == 'CoreLibs-Composer-All' + uses: OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1 with: php-version: '8.4,8.5' composer-directory: './www'