diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 43c1d07..db1bcb9 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -32,6 +32,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. + custom-cache-suffix: $(date -u "+%Y-%m") - name: Check PHP code style id: phpcs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e78f3c7..18dca8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,6 +56,9 @@ jobs: - name: Install Composer dependencies - normal if: ${{ matrix.experimental == false }} uses: "ramsey/composer-install@v2" + with: + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") # For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it. - name: Install Composer dependencies - with ignore platform @@ -63,6 +66,7 @@ jobs: uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs + custom-cache-suffix: $(date -u "+%Y-%m") - name: Lint run: composer phplint -- --checkstyle | cs2pr @@ -111,6 +115,9 @@ jobs: - name: Install Composer dependencies - normal uses: "ramsey/composer-install@v2" + with: + # Bust the cache at least once a month - output format: YYYY-MM. + custom-cache-suffix: $(date -u "+%Y-%m") - name: Lint run: composer phplint -- --checkstyle | cs2pr