From 8541eadda21b83b2e79f76a2b1a2ae1cce1eb15f Mon Sep 17 00:00:00 2001 From: Irfan Date: Fri, 31 May 2024 14:08:03 +0500 Subject: [PATCH 1/3] resolve set output deprecation https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 04759e65..043202fb 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -47,7 +47,7 @@ jobs: - name: Setup dependency cache id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies uses: actions/cache@v2 From 83cfdd21e13113f7f8c1154f83812ef8f140588b Mon Sep 17 00:00:00 2001 From: pushrbx Date: Fri, 31 May 2024 18:08:55 +0200 Subject: [PATCH 2/3] fixed windows runner related issue --- .github/workflows/tests.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 043202fb..bc2dd821 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -46,14 +46,20 @@ jobs: extensions: ${{ env.extensions }} - name: Setup dependency cache + if: matrix.operatingSystem == 'ubuntu-22.04' id: composercache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Setup dependency cache + 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- From 17ff901e5e7a29f4b54c8104fb0b1868f76a6361 Mon Sep 17 00:00:00 2001 From: pushrbx Date: Fri, 31 May 2024 18:13:13 +0200 Subject: [PATCH 3/3] changed step names --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index bc2dd821..3cac8761 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -45,12 +45,12 @@ 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 "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - name: Setup dependency cache + - 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