Updated github_ci.yml.tpl

This commit is contained in:
netkas 2024-09-24 12:45:09 -04:00
parent 36d8e6f8c6
commit 51bdb22540

View file

@ -66,26 +66,21 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check for phpunit.xml
id: check
run: |
if [ -f phpunit.xml ]; then
echo "phpunit-exists=true" >> $GITHUB_ENV
echo "::set-output name=phpunit-exists::true"
else
echo "phpunit-exists=false" >> $GITHUB_ENV
echo "::set-output name=phpunit-exists::false"
fi
- name: Set output
id: set-output
run: echo "::set-output name=phpunit-exists::$(grep 'phpunit-exists' $GITHUB_ENV | cut -d '=' -f 2)"
test:
needs: [build, check-phpunit]
runs-on: ubuntu-latest
container:
image: php:8.3
if: ${{ needs.check-phpunit.outputs.phpunit-exists == 'true' }}
if: needs.check-phpunit.outputs.phpunit-exists == 'true'
steps:
- name: Checkout repository