Make WordPress Core

Changeset 52220


Ignore:
Timestamp:
11/19/2021 07:21:36 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Add the ruleset file to the cache key for PHPCS and PHP compatibility scans.

This ensures that the cache is busted properly when the ruleset is adjusted but the composer.json file is not.

See #54425.

Location:
trunk/.github/workflows
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r52183 r52220  
    8787        with:
    8888          path: .cache/phpcs.json
    89           key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json') }}
     89          key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
    9090
    9191      - name: Install Composer dependencies
  • trunk/.github/workflows/php-compatibility.yml

    r52183 r52220  
    8181        with:
    8282          path: .cache/phpcompat.json
    83           key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json') }}
     83          key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}
    8484
    8585      - name: Install Composer dependencies
Note: See TracChangeset for help on using the changeset viewer.