Skip to content

Commit bc94bdd

Browse files
authored
Merge pull request #84 from Yoast/feature/ghactions-cache-busting
GH Actions: bust the cache semi-regularly
2 parents 57b2f9a + 088cd3d commit bc94bdd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/cs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
# @link https://github.com/marketplace/actions/install-composer-dependencies
3434
- name: Install Composer dependencies
3535
uses: "ramsey/composer-install@v2"
36+
with:
37+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
38+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
3639

3740
# Validate the composer.json file.
3841
# @link https://getcomposer.org/doc/03-cli.md#validate

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
# @link https://github.com/marketplace/actions/install-composer-dependencies
4343
- name: Install Composer dependencies
4444
uses: "ramsey/composer-install@v2"
45+
with:
46+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
47+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
4548

4649
- name: "Lint PHP files against parse errors - PHP < 7.0"
4750
if: ${{ matrix.php < 7.0 }}

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ jobs:
9191
# @link https://github.com/marketplace/actions/install-composer-dependencies
9292
- name: Install Composer dependencies
9393
uses: "ramsey/composer-install@v2"
94+
with:
95+
# Bust the cache at least once a month - output format: YYYY-MM-DD.
96+
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
9497

9598
- name: Run the unit tests
9699
if: ${{ matrix.phpunit != '^10.0' }}

0 commit comments

Comments
 (0)