diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ccffb11f1fc..bea64d0cdc7 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -59,18 +59,21 @@ jobs: - name: restore lerna uses: actions/cache@v2 + id: cache with: path: | node_modules */*/node_modules key: unittest-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }} - - name: Install and Build 🔧 + - name: Bootstrap + if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' - npm run compile + - name: Build 🔧 + run: npm run compile - name: Unit tests run: npm run test:browser - name: Report Coverage