From 92f055fbaa40eb9c231cc5569aebf162387bf840 Mon Sep 17 00:00:00 2001 From: David Shanske Date: Sat, 9 Jul 2022 16:03:51 +0000 Subject: [PATCH 1/2] Update workflow scripts --- .github/workflows/deploy.yml | 2 +- .github/workflows/phpcs.yml | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 619e846..d084518 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: name: New tag runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master env: diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index cfd24be..6365b8a 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -5,26 +5,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '7.4' coverage: none tools: composer, cs2pr - - name: Get Composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - name: Setup cache - uses: pat-s/always-upload-cache@v1.1.4 - with: - path: ${{ steps.composer-cache.outputs.dir }} - # Use the hash of composer.json as the key for your cache if you do not commit composer.lock. - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - #key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - name: Install dependencies - run: composer install --prefer-dist --no-progress + - name: Install Composer dependencies for PHP + uses: "ramsey/composer-install@v2" - name: Detect coding standard violations run: composer lint From 12a269671b236af4c9442293ccda032335cbec9a Mon Sep 17 00:00:00 2001 From: David Shanske Date: Sat, 9 Jul 2022 16:04:49 +0000 Subject: [PATCH 2/2] Improper alignment --- .github/workflows/phpcs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 6365b8a..99a078a 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -13,7 +13,7 @@ jobs: coverage: none tools: composer, cs2pr - name: Install Composer dependencies for PHP - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v2" - name: Detect coding standard violations run: composer lint