Skip to content

Commit f746209

Browse files
authored
Merge pull request #15 from jrfnl/feature/ghactions-cache-busting
GH Actions: bust the cache semi-regularly
2 parents 28753b0 + 74ea89c commit f746209

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
with:
5454
dependency-versions: "${{ inputs.composer-dependencies }}"
5555
composer-options: "${{ inputs.composer-options }}"
56+
# Bust the cache at least once a month - output format: YYYY-MM.
57+
custom-cache-suffix: $(date -u "+%Y-%m")
5658

5759
- name: "Collect code coverage with Xdebug and phpunit/phpunit"
5860
env:

.github/workflows/coding-standards.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
with:
6161
dependency-versions: "${{ inputs.composer-dependencies }}"
6262
composer-options: "${{ inputs.composer-options }}"
63+
# Bust the cache at least once a month - output format: YYYY-MM.
64+
custom-cache-suffix: $(date -u "+%Y-%m")
6365

6466
- name: "Code style check"
6567
uses: "phpDocumentor/coding-standard@latest"

.github/workflows/continues-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
with:
6464
dependency-versions: "${{ inputs.composer-dependencies }}"
6565
composer-options: "${{ inputs.composer-options }}"
66+
# Bust the cache at least once a month - output format: YYYY-MM.
67+
custom-cache-suffix: $(date -u "+%Y-%m")
6668

6769
- name: "Run tests with phpunit/phpunit"
6870
run: "vendor/bin/phpunit --colors=always --testsuite=${{ inputs.test-suite }}"

.github/workflows/dependency-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
with:
6161
dependency-versions: "${{ inputs.composer-dependencies }}"
6262
composer-options: "${{ inputs.composer-options }}"
63+
# Bust the cache at least once a month - output format: YYYY-MM.
64+
custom-cache-suffix: $(date -u "+%Y-%m")
6365

6466
- name: "Run maglnet/composer-require-checker"
6567
run: "composer-require-checker check --config-file=$(pwd)/composer-require-checker.json"

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
with:
6161
dependency-versions: "${{ inputs.composer-dependencies }}"
6262
composer-options: "${{ inputs.composer-options }}"
63+
# Bust the cache at least once a month - output format: YYYY-MM.
64+
custom-cache-suffix: $(date -u "+%Y-%m")
6365

6466
- name: "Create cache directory for phpstan/phpstan"
6567
run: "mkdir -p .build/phpstan"

0 commit comments

Comments
 (0)