From b0bd52c57338dd919f3677aae16ec6611b3227fe Mon Sep 17 00:00:00 2001 From: Viktor Petersson Date: Fri, 27 Dec 2024 12:27:30 +0000 Subject: [PATCH] Attempts to fix plugin check --- .github/workflows/plugin-check.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index ffe8ada..910b986 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -20,18 +20,19 @@ jobs: php-version: '8.0' tools: composer - - name: Install WordPress Plugin Check - run: | - git clone https://github.com/WordPress/plugin-check.git - cd plugin-check - composer install + - name: Install dependencies + run: composer install --no-dev --optimize-autoloader - name: Build plugin + run: ./bin/build.sh + + - name: Install WordPress Plugin Check + working-directory: ${{ github.workspace }} run: | - composer install --no-dev --optimize-autoloader - ./bin/build.sh + git clone https://github.com/WordPress/plugin-check.git wp-plugin-check + cd wp-plugin-check + composer install - name: Run Plugin Check - run: | - cd plugin-check - ./bin/plugin-check check ../build/screenly-cast/ \ No newline at end of file + working-directory: ${{ github.workspace }}/wp-plugin-check + run: php bin/plugin-check check ../build/screenly-cast/ \ No newline at end of file