diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 04759e65..3cac8761 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -45,15 +45,21 @@ jobs: tools: composer:v2 extensions: ${{ env.extensions }} - - name: Setup dependency cache + - name: Setup dependency cache (Linux) + if: matrix.operatingSystem == 'ubuntu-22.04' id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Setup dependency cache (Windows) + if: matrix.operatingSystem == 'windows-latest' + id: composercachewin + run: echo "dir=$(composer config cache-files-dir)" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append - name: Cache dependencies uses: actions/cache@v2 id: cache with: - path: ${{ steps.composercache.outputs.dir }} + path: ${{ steps.composercache.outputs.dir }}${{ steps.composercachewin.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-composer-