From dd390123e9c44ab85157b7a368c5d91be7d329da Mon Sep 17 00:00:00 2001 From: "lucas.shaw" Date: Fri, 28 Jun 2024 10:15:48 +0100 Subject: [PATCH] add yarn --- .github/workflows/test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c90af9f..83b510c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,6 +44,22 @@ jobs: with: node-version: 14.17.5 + - name: Find yarn cache location + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + + - name: JS package cache + uses: actions/cache@v4 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install packages + run: | + yarn install --frozen-lockfile + - name: Precompile assets run: bin/rails assets:precompile