From a86946e39fec300cf61bb6a731cf78f12cfc1dd8 Mon Sep 17 00:00:00 2001 From: Darshan Gada Date: Fri, 2 Feb 2024 21:05:54 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fix=20deprecation=20errors=20in?= =?UTF-8?q?=20CI=20Action=20(#3183)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afba19fef7..cbcbcff52e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,19 +25,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + cache: 'yarn' env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Restore the Yarn cache directory - id: yarncache - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v4 - with: - path: ${{ steps.yarncache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: ${{ runner.os }}-${{ matrix.node }}-yarn- - - name: Install dependencies using Yarn run: yarn install --frozen-lockfile @@ -65,11 +56,11 @@ jobs: php-version: ${{ matrix.php }} coverage: xdebug env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Restore the Composer cache directory id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 with: