Remove OptsLib.php and update GitHub action
This commit is contained in:
parent
9d6008368b
commit
f1e2df0dcc
2 changed files with 13 additions and 9 deletions
14
.github/workflows/ncc_workflow.yml
vendored
14
.github/workflows/ncc_workflow.yml
vendored
|
@ -69,6 +69,19 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check for phpunit.xml
|
||||
id: file_check
|
||||
run: |
|
||||
if [ -f phpunit.xml ]; then
|
||||
echo "::set-output name=exists::true"
|
||||
else
|
||||
echo "::set-output name=exists::false"
|
||||
fi
|
||||
|
||||
- name: Skip if no phpunit.xml
|
||||
if: steps.file_check.outputs.exists == 'false'
|
||||
run: exit 78
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
@ -114,7 +127,6 @@ jobs:
|
|||
ncc package install --package="OptsLib_build/net.nosial.optslib.ncc" --build-source --reinstall -y --log-level debug
|
||||
|
||||
- name: Run PHPUnit tests
|
||||
if: files.exists('phpunit.xml')
|
||||
run: |
|
||||
wget https://phar.phpunit.de/phpunit-11.3.phar
|
||||
php phpunit-11.3.phar --configuration phpunit.xml
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace OptsLib;
|
||||
|
||||
class OptsLib
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue