Skip to content

Commit

Permalink
GH Actions: minor simplification
Browse files Browse the repository at this point in the history
... of the bash `date` command in the earlier pulled cache busting.
  • Loading branch information
jrfnl committed Dec 8, 2022
1 parent 34528d3 commit dc5f52c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integrationtest.yml
Expand Up @@ -134,15 +134,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")
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Install Composer dependencies
if: ${{ matrix.php == '8.3' }}
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")
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Run integration tests
run: vendor/bin/phpunit --no-coverage
4 changes: 2 additions & 2 deletions .github/workflows/phplint.yml
Expand Up @@ -39,8 +39,8 @@ 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")
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Lint against parse errors
run: composer lint -- --checkstyle | cs2pr
4 changes: 2 additions & 2 deletions .github/workflows/quicktest.yml
Expand Up @@ -60,8 +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")
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Run integration tests
run: vendor/bin/phpunit --no-coverage
4 changes: 2 additions & 2 deletions .github/workflows/securitycheck.yml
Expand Up @@ -37,8 +37,8 @@ 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")
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Download security checker
# yamllint disable-line rule:line-length
Expand Down

0 comments on commit dc5f52c

Please sign in to comment.