forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request phpDocumentor#3357 from jrfnl/feature/ghactions-ca…
…che-busting GH Actions: bust the cache semi-regularly
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,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: composer-require-checker | ||
run: composer-require-checker check --config-file $GITHUB_WORKSPACE/composer-require-config.json composer.json | ||
|
@@ -89,6 +91,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: Install PHPUnit extensions | ||
run: mkdir -p tools/phpunit.d && curl -sL https://github.com/jaapio/prophecy-phpunit/releases/download/v2.2.0/prophecy-phpunit.phar --output tools/phpunit.d/prophecy-phpunit.phar | ||
|
@@ -156,6 +160,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: PHPStan | ||
uses: phpDocumentor/[email protected] | ||
|
@@ -200,6 +206,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: Psalm | ||
run: php bin/psalm.phar --output-format=github | ||
|
@@ -243,6 +251,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: warm cache | ||
uses: phpDocumentor/phar-ga@latest | ||
|
@@ -327,6 +337,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: Install PHPUnit extensions | ||
run: mkdir -p tools/phpunit.d && curl -sL https://github.com/jaapio/prophecy-phpunit/releases/download/v2.2.0/prophecy-phpunit.phar --output tools/phpunit.d/prophecy-phpunit.phar | ||
|
@@ -377,6 +389,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: Build example project template | ||
run: ./bin/phpdoc --template=${{ matrix.template }} -vvv --config=data/examples/MariosPizzeria/phpdoc.xml --target=build/${{ matrix.template }} --setting="guides.enabled=false" | ||
|