From b53a67b8cd6a481a9e44c8a334c0a234e37754e6 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 0d0c13af96..5e93c04aa3 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 0959f20c8a..d44717fc09 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: