File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 # Performs the following steps:
1818 # - Checks out the repository.
1919 # - Sets up Node.js.
20- # - Configures caching for Composer.
2120 # - Installs Composer dependencies.
2221 # - Logs general debug information about the runner.
2322 # - Installs npm dependencies.
@@ -48,18 +47,12 @@ jobs:
4847 node-version-file : ' .nvmrc'
4948 cache : npm
5049
51- # This date is used to ensure that the PHPCS cache is cleared at least once every week.
52- # http://man7.org/linux/man-pages/man1/date.1.html
53- - name : " Get last Monday's date"
54- id : get-date
55- run : echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
56-
5750 # Since Composer dependencies are installed using `composer update` and no lock file is in version control,
5851 # passing a custom cache suffix ensures that the cache is flushed at least once per week.
5952 - name : Install Composer dependencies
6053 uses : ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
6154 with :
62- custom-cache-suffix : ${{ steps.get- date.outputs.date }}
55+ custom-cache-suffix : $(/bin/date -u -- date='last Mon' "+%F")
6356
6457 - name : Log debug information
6558 run : |
Original file line number Diff line number Diff line change 2424 # Performs the following steps:
2525 # - Checks out the repository.
2626 # - Sets up PHP.
27- # - Logs debug information.
2827 # - Installs Composer dependencies.
28+ # - Logs debug information.
2929 # - Configures caching for PHP static analysis scans.
3030 # - Make Composer packages available globally.
3131 # - Runs PHPStan static analysis (with Pull Request annotations).
5858 coverage : none
5959 tools : cs2pr
6060
61- # This date is used to ensure that the Composer cache is cleared at least once every week.
62- # http://man7.org/linux/man-pages/man1/date.1.html
63- - name : " Get last Monday's date"
64- id : get-date
65- run : echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> "$GITHUB_OUTPUT"
66-
6761 - name : General debug information
6862 run : |
6963 npm --version
7569 - name : Install Composer dependencies
7670 uses : ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
7771 with :
78- custom-cache-suffix : ${{ steps.get- date.outputs.date }}
72+ custom-cache-suffix : $(/bin/date -u -- date='last Mon' "+%F")
7973
8074 - name : Make Composer packages available globally
8175 run : echo "${PWD}/vendor/bin" >> "$GITHUB_PATH"
You can’t perform that action at this time.
0 commit comments