From 9e826c6afadd2a762144df5e3a40142ececb6fc9 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 4 Jun 2022 23:48:07 +0900 Subject: [PATCH] enable actions/setup-node's global cache --- .github/workflows/lint.yml | 3 +-- .github/workflows/test.yml | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0d0c13af9..5e93c04aa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,8 +23,7 @@ jobs: - uses: actions/setup-node@v3.2.0 with: node-version: 18.x + cache: 'yarn' - run: corepack enable - run: yarn install --immutable - env: - YARN_CHECKSUM_BEHAVIOR: update - run: yarn workspace ${{ matrix.workspace }} run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0959f20c8..d44717fc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,9 +34,10 @@ jobs: with: submodules: true - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.2.0 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' - run: corepack enable - run: yarn install --immutable - name: Check yarn.lock @@ -81,9 +82,10 @@ jobs: #- uses: browser-actions/setup-firefox@latest # if: ${{ matrix.browser == 'firefox' }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.2.0 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' - run: corepack enable - run: yarn install --immutable env: