diff --git a/.github/workflows/ncc_workflow.yml b/.github/workflows/ncc_workflow.yml index e262d4b..2e19673 100644 --- a/.github/workflows/ncc_workflow.yml +++ b/.github/workflows/ncc_workflow.yml @@ -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 diff --git a/src/OptsLib.php b/src/OptsLib.php deleted file mode 100644 index 1f99c83..0000000 --- a/src/OptsLib.php +++ /dev/null @@ -1,8 +0,0 @@ -