From b1928f4d1ef835c2cc28e6fe4c75baa40b33d2db Mon Sep 17 00:00:00 2001 From: Masaki Kobayashi Date: Sat, 4 Nov 2023 02:56:34 +0900 Subject: [PATCH] ci: cache yarn deps with `cache` option of `actions/setup-node` --- .github/workflows/ci.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a22bc7..7438318 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,10 +17,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: "18" - - uses: actions/cache@v3 - with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + cache: "yarn" - name: ESLint run: make lint - name: Prettier @@ -41,10 +38,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: "18" - - uses: actions/cache@v3 - with: - path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + cache: "yarn" - name: Simple test run: make test - name: Build for E2E