Skip to content

Commit

Permalink
Replace github action compose-cache outputs step
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Nov 18, 2024
1 parent 35d056f commit 8f51ed6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Get composer cache directory
uses: mathiasvr/[email protected]
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT
with:
run: composer config cache-files-dir

- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: ${{ steps.composer-cache.outputs.stdout }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-

Expand Down

0 comments on commit 8f51ed6

Please sign in to comment.