Unverified Commit 770abd79 authored by Wim Godden's avatar Wim Godden Committed by GitHub
Browse files

Merge pull request #1408 from PHPCompatibility/feature/ghactions-cache-busting

GH Actions: bust the cache semi-regularly
parents 5da734c0 003d98e2
......@@ -46,6 +46,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: Install xmllint
run: |
......
......@@ -66,6 +66,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
if: ${{ matrix.phpcs_version == 'dev-master' }}
......
......@@ -55,6 +55,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
if: ${{ matrix.php != '5.4' && startsWith( matrix.php, '8' ) == false }}
......@@ -146,6 +149,9 @@ jobs:
- name: Install Composer dependencies - normal
if: ${{ matrix.php < 8.2 }}
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")
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
- name: Install Composer dependencies - with ignore platform
......@@ -153,6 +159,7 @@ jobs:
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-req=php
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
- name: Run the unit tests
run: vendor/bin/phpunit --no-coverage
......@@ -224,6 +231,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: Grab PHPUnit version
id: phpunit_version
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment