From 3d1abd937fc4fd3e2f37cb9cd11f52539cd18b3e Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 20 Dec 2024 11:24:51 +1300 Subject: [PATCH] Update licenses.yml --- .github/workflows/licenses.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index e93a4d9..2b89669 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -42,9 +42,8 @@ jobs: uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 with: php-version: ${{ steps.phpversion.outputs.version }} - extensions: curl, dom, gd, intl, json, ldap, mbstring, mysql, tidy, xdebug, zip + extensions: curl, dom, gd, intl, json, ldap, mbstring, mysql, tidy, zip tools: composer:v2 - coverage: xdebug - name: Composer install run: composer install @@ -132,6 +131,11 @@ jobs: npm install -g yarn; fi yarn install --network-concurrency 1 + DEPS=$(jq -r '.dependencies' package.json) + if [[ $DEPS == "null" ]] || [[ $DEPS == "{}" ]]; then + echo "No non-dev dependencies found in $DIR" + continue + fi if [[ -z $(which license-checker) ]]; then echo "Installing license-checker" npm install -g license-checker