Updated workflow
This commit is contained in:
parent
6cd05ab051
commit
c98939d33f
1 changed files with 19 additions and 2 deletions
21
.github/workflows/ncc_workflow.yml
vendored
21
.github/workflows/ncc_workflow.yml
vendored
|
@ -59,12 +59,29 @@ jobs:
|
||||||
name: OptsLib_build
|
name: OptsLib_build
|
||||||
path: build/release/net.nosial.optslib.ncc
|
path: build/release/net.nosial.optslib.ncc
|
||||||
|
|
||||||
|
check-phpunit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
phpunit-exists: ${{ steps.check.outputs.phpunit-exists }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check for phpunit.xml
|
||||||
|
id: check
|
||||||
|
run: |
|
||||||
|
if [ -f phpunit.xml ]; then
|
||||||
|
echo "::set-output name=phpunit-exists::true"
|
||||||
|
else
|
||||||
|
echo "::set-output name=phpunit-exists::false"
|
||||||
|
fi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: build
|
needs: [build, check-phpunit]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: php:8.3
|
image: php:8.3
|
||||||
if: ${{ exists('phpunit.xml') }}
|
if: needs.check-phpunit.outputs.phpunit-exists == 'true'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
Loading…
Add table
Reference in a new issue