diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index af074e30cd..3f5b0a5ff1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -29,7 +29,19 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: 'pnpm' + + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}- + ${{ runner.os }}-${{ matrix.node-version }}-test- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile - uses: ArtiomTr/jest-coverage-report-action@v2.0-rc.6 diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 49d078b141..59c6e83245 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -26,6 +26,18 @@ jobs: with: version: latest + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6a46092562..cc7d79a93e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -26,6 +26,18 @@ jobs: with: version: latest + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-publish-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-publish-${{ env.cache-name }}- + ${{ runner.os }}-publish- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/manual-deploy-docs.yml b/.github/workflows/manual-deploy-docs.yml index bc038e34da..136a69cb93 100644 --- a/.github/workflows/manual-deploy-docs.yml +++ b/.github/workflows/manual-deploy-docs.yml @@ -19,6 +19,18 @@ jobs: with: version: latest + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-publish-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-publish-${{ env.cache-name }}- + ${{ runner.os }}-publish- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 6f7045d9ab..0319e3392f 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -30,6 +30,18 @@ jobs: with: version: latest + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-preview-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-preview-${{ env.cache-name }}- + ${{ runner.os }}-preview- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/publish-npm-nightly.yml b/.github/workflows/publish-npm-nightly.yml index 61098c7061..534d4c05d4 100644 --- a/.github/workflows/publish-npm-nightly.yml +++ b/.github/workflows/publish-npm-nightly.yml @@ -22,6 +22,19 @@ jobs: uses: pnpm/action-setup@v2 with: version: latest + + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-publish-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-publish-${{ env.cache-name }}- + ${{ runner.os }}-publish- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile - name: Lint diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 0efcfb798a..466230d1e1 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -21,6 +21,19 @@ jobs: uses: pnpm/action-setup@v2 with: version: latest + + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-publish-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-publish-${{ env.cache-name }}- + ${{ runner.os }}-publish- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile - name: Lint diff --git a/.github/workflows/staging-preview.yml b/.github/workflows/staging-preview.yml index 5779ead988..9735a4e58a 100644 --- a/.github/workflows/staging-preview.yml +++ b/.github/workflows/staging-preview.yml @@ -24,6 +24,18 @@ jobs: with: version: latest + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-preview-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-preview-${{ env.cache-name }}- + ${{ runner.os }}-preview- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index e608d55cf2..36cb08c7ec 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -26,7 +26,19 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: 'pnpm' + + - name: Cache ~/.pnpm-store + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}- + ${{ runner.os }}-${{ matrix.node-version }}-test- + ${{ runner.os }}- + - name: Install dependencies run: pnpm i --frozen-lockfile - name: Lint