Skip to content

Commit ccc9e9d

Browse files
authored
Merge pull request #2142 from WordPress/feature/ghactions-tweaks
2 parents 90e6d49 + a12ac78 commit ccc9e9d

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/basic-qa.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- name: Install Composer dependencies
4545
uses: ramsey/composer-install@v2
4646
with:
47-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
48-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
47+
# Bust the cache at least once a month - output format: YYYY-MM.
48+
custom-cache-suffix: $(date -u "+%Y-%m")
4949

5050
- name: Install xmllint
5151
run: |
@@ -120,8 +120,8 @@ jobs:
120120
- name: Install Composer dependencies
121121
uses: ramsey/composer-install@v2
122122
with:
123-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
124-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
123+
# Bust the cache at least once a month - output format: YYYY-MM.
124+
custom-cache-suffix: $(date -u "+%Y-%m")
125125

126126
- name: Test the WordPress-Core ruleset
127127
run: $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Core

.github/workflows/quicktest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ jobs:
6262
if: ${{ matrix.php < 8.0 && matrix.php != 'latest' }}
6363
uses: ramsey/composer-install@v2
6464
with:
65-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
66-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
65+
# Bust the cache at least once a month - output format: YYYY-MM.
66+
custom-cache-suffix: $(date -u "+%Y-%m")
6767

6868
- name: Install Composer dependencies (PHP >= 8.0)
6969
if: ${{ matrix.php >= 8.0 || matrix.php == 'latest' }}
7070
uses: ramsey/composer-install@v2
7171
with:
7272
composer-options: --ignore-platform-reqs
73-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
73+
custom-cache-suffix: $(date -u "+%Y-%m")
7474

7575
- name: Lint PHP files against parse errors
7676
if: ${{ matrix.phpcs_version == 'dev-master' }}

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
24+
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
2525
phpcs_version: [ '3.7.1', 'dev-master' ]
2626
#include:
2727
# Add extra build to test against PHPCS 4.
@@ -30,6 +30,8 @@ jobs:
3030

3131
name: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}
3232

33+
continue-on-error: ${{ matrix.php == '8.3' }}
34+
3335
steps:
3436
- name: Checkout repository
3537
uses: actions/checkout@v3
@@ -60,15 +62,15 @@ jobs:
6062
if: ${{ matrix.php < 8.0 }}
6163
uses: ramsey/composer-install@v2
6264
with:
63-
# Bust the cache at least once a month - output format: YYYY-MM-DD.
64-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
65+
# Bust the cache at least once a month - output format: YYYY-MM.
66+
custom-cache-suffix: $(date -u "+%Y-%m")
6567

6668
- name: Install Composer dependencies (PHP >= 8.0)
6769
if: ${{ matrix.php >= 8.0 }}
6870
uses: ramsey/composer-install@v2
6971
with:
7072
composer-options: --ignore-platform-reqs
71-
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")
73+
custom-cache-suffix: $(date -u "+%Y-%m")
7274

7375
- name: Lint PHP files against parse errors
7476
if: ${{ matrix.phpcs_version == 'dev-master' }}

0 commit comments

Comments
 (0)