From f1e2df0dcc5056cf4a0f9c8bf899a9842cb60348 Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 23 Sep 2024 18:58:10 -0400 Subject: [PATCH] Remove OptsLib.php and update GitHub action --- .github/workflows/ncc_workflow.yml | 14 +++++++++++++- src/OptsLib.php | 8 -------- 2 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 src/OptsLib.php 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 @@ -