From f1ae60a04d7d08310ae582a3e55f85f0aef0ab41 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 8 Jul 2020 16:55:34 -0400 Subject: [PATCH] ci: fix yaml and add cache-hit clause to yarn install --- .github/workflows/monorepo-validate.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/monorepo-validate.yaml b/.github/workflows/monorepo-validate.yaml index 25468499f..f5d904f41 100644 --- a/.github/workflows/monorepo-validate.yaml +++ b/.github/workflows/monorepo-validate.yaml @@ -10,12 +10,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn run compliance:licenses audit: @@ -26,12 +27,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn run compliance:audit lint: @@ -42,12 +44,13 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn lint test: @@ -58,10 +61,11 @@ jobs: - uses: actions/cache@v2 id: cache with: - path: **/node_modules + path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-node@v1 with: node-version: '12.x' - run: yarn install + if: steps.cache.outputs.cache-hit != 'true' - run: yarn test