Skip to content

Commit

Permalink
Merge pull request #192 from PHPCSStandards/feature/ghactions-cache-b…
Browse files Browse the repository at this point in the history
…usting

GH Actions: bust the cache semi-regularly
  • Loading branch information
Potherca committed Nov 16, 2022
2 parents 10e9bba + 5c410c7 commit cd79216
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integrationtest.yml
Expand Up @@ -127,12 +127,15 @@ jobs:
uses: "ramsey/composer-install@v2"
with:
composer-options: '--optimize-autoloader'
# 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: Install Composer dependencies
if: ${{ matrix.php == '8.2' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: '--ignore-platform-reqs --optimize-autoloader'
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")

- name: Run integration tests
run: vendor/bin/phpunit --no-coverage
3 changes: 3 additions & 0 deletions .github/workflows/phplint.yml
Expand Up @@ -38,6 +38,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: Lint against parse errors
run: composer lint -- --checkstyle | cs2pr
2 changes: 2 additions & 0 deletions .github/workflows/quicktest.yml
Expand Up @@ -60,6 +60,8 @@ jobs:
uses: "ramsey/composer-install@v2"
with:
composer-options: '--optimize-autoloader'
# 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: Run integration tests
run: vendor/bin/phpunit --no-coverage
3 changes: 3 additions & 0 deletions .github/workflows/securitycheck.yml
Expand Up @@ -36,6 +36,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: Download security checker
# yamllint disable-line rule:line-length
Expand Down

0 comments on commit cd79216

Please sign in to comment.