Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
PHPCompatibility
Commits
770abd79
Unverified
Commit
770abd79
authored
Nov 22, 2022
by
Wim Godden
Committed by
GitHub
Nov 22, 2022
Browse files
Merge pull request #1408 from PHPCompatibility/feature/ghactions-cache-busting
GH Actions: bust the cache semi-regularly
parents
5da734c0
003d98e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
.github/workflows/basics.yml
View file @
770abd79
...
...
@@ -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
:
|
...
...
.github/workflows/quicktest.yml
View file @
770abd79
...
...
@@ -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' }}
...
...
.github/workflows/test.yml
View file @
770abd79
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment