Updated github_ci.yml.tpl
This commit is contained in:
parent
36d8e6f8c6
commit
51bdb22540
1 changed files with 3 additions and 8 deletions
|
@ -66,26 +66,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check for phpunit.xml
|
- name: Check for phpunit.xml
|
||||||
id: check
|
id: check
|
||||||
run: |
|
run: |
|
||||||
if [ -f phpunit.xml ]; then
|
if [ -f phpunit.xml ]; then
|
||||||
echo "phpunit-exists=true" >> $GITHUB_ENV
|
echo "::set-output name=phpunit-exists::true"
|
||||||
else
|
else
|
||||||
echo "phpunit-exists=false" >> $GITHUB_ENV
|
echo "::set-output name=phpunit-exists::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Set output
|
|
||||||
id: set-output
|
|
||||||
run: echo "::set-output name=phpunit-exists::$(grep 'phpunit-exists' $GITHUB_ENV | cut -d '=' -f 2)"
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: [build, check-phpunit]
|
needs: [build, check-phpunit]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: php:8.3
|
image: php:8.3
|
||||||
if: ${{ needs.check-phpunit.outputs.phpunit-exists == 'true' }}
|
if: needs.check-phpunit.outputs.phpunit-exists == 'true'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
Loading…
Add table
Reference in a new issue