diff --git a/.github/workflows/basics.yml b/.github/workflows/basics.yml index 1ae494f9..6c20a10d 100644 --- a/.github/workflows/basics.yml +++ b/.github/workflows/basics.yml @@ -54,6 +54,9 @@ jobs: # @link https://github.com/marketplace/actions/install-composer-dependencies - 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") - name: 'Validate XML against schema and check code style' run: ./bin/xml-lint diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 3082f5b8..3de35f83 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -78,6 +78,9 @@ jobs: - name: Install Composer dependencies - normal if: ${{ startsWith( matrix.php, '8' ) == false && matrix.php != 'latest' }} 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") # PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform # requirements to get PHPUnit 7.x to install on nightly. @@ -86,6 +89,7 @@ jobs: uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs + custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") - name: Lint against parse errors if: matrix.phpcs_version == 'dev-master' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b55f5164..0e4cb6cf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,9 @@ 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") - name: Lint against parse errors run: ./bin/php-lint --checkstyle | cs2pr @@ -140,6 +143,9 @@ jobs: - name: Install Composer dependencies - normal if: ${{ startsWith( matrix.php, '8' ) == false }} 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") # PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform # requirements to get PHPUnit 7.x to install on nightly. @@ -148,6 +154,7 @@ jobs: uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs + custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F") - name: Run the unit tests - PHP 5.4 - 8.0 if: matrix.php < '8.1'