diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index d3c1e53..bdf3172 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -41,15 +41,15 @@ jobs: - name: Install Composer dependencies uses: ramsey/composer-install@v2 with: - # Bust the cache at least once a month - output format: YYYY-MM-DD. - custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") # Check the codestyle of the files. # The results of the CS check will be shown inline in the PR via the CS2PR tool. # @link https://github.com/staabm/annotate-pull-request-from-checkstyle/ - name: Check PHP code style id: phpcs - run: composer check-cs -- --report-full --report-checkstyle=./phpcs-report.xml + run: composer check-cs -- --no-cache --report-full --report-checkstyle=./phpcs-report.xml - name: Show PHPCS results in PR if: ${{ always() && steps.phpcs.outcome == 'failure' }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 778adf5..ac0a2a5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,8 +47,8 @@ jobs: - name: Install Composer dependencies uses: ramsey/composer-install@v2 with: - # Bust the cache at least once a month - output format: YYYY-MM-DD. - custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") - name: Lint against parse errors run: composer lint -- --checkstyle | cs2pr diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54e1581..e52623f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,8 +45,8 @@ jobs: if: ${{ matrix.php_version < '7.3' }} uses: ramsey/composer-install@v2 with: - # Bust the cache at least once a month - output format: YYYY-MM-DD. - custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") - name: Install Composer dependencies (PHP 7.3+) if: ${{ matrix.php_version >= '7.3' }} @@ -56,8 +56,8 @@ jobs: dependency-versions: "highest" # But make it selective. composer-options: "yoast/wp-test-utils --with-dependencies --ignore-platform-req=php" - # Bust the cache at least once a month - output format: YYYY-MM-DD. - custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") - name: Run unit tests run: composer test