From c08455f4fdd7e1b95a2e97c0da6194045db60d35 Mon Sep 17 00:00:00 2001 From: ColeWalker Date: Sun, 13 Sep 2020 09:34:19 -0400 Subject: [PATCH] ci: :green_heart: add conditional for yarn install modules --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cca3cc..6e86d8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,8 +25,11 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- + - name: install modules + if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn + - name: Run tests run: yarn jest - name: Release