Skip to content

Commit

Permalink
fix: Deprecation errors in CI Action
Browse files Browse the repository at this point in the history
  • Loading branch information
dr5hn committed Feb 2, 2024
1 parent 3932435 commit ec8dfa1
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ec8dfa1

Please sign in to comment.