mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
ci: add dependency cache (#6199)
This commit is contained in:
14
.github/workflows/coverage.yml
vendored
14
.github/workflows/coverage.yml
vendored
@@ -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
|
||||
|
||||
12
.github/workflows/cypress.yml
vendored
12
.github/workflows/cypress.yml
vendored
@@ -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
|
||||
|
||||
|
||||
12
.github/workflows/deploy-docs.yml
vendored
12
.github/workflows/deploy-docs.yml
vendored
@@ -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
|
||||
|
||||
|
||||
12
.github/workflows/manual-deploy-docs.yml
vendored
12
.github/workflows/manual-deploy-docs.yml
vendored
@@ -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
|
||||
|
||||
|
||||
12
.github/workflows/preview-build.yml
vendored
12
.github/workflows/preview-build.yml
vendored
@@ -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
|
||||
|
||||
|
||||
13
.github/workflows/publish-npm-nightly.yml
vendored
13
.github/workflows/publish-npm-nightly.yml
vendored
@@ -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
|
||||
|
||||
13
.github/workflows/publish-npm.yml
vendored
13
.github/workflows/publish-npm.yml
vendored
@@ -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
|
||||
|
||||
12
.github/workflows/staging-preview.yml
vendored
12
.github/workflows/staging-preview.yml
vendored
@@ -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
|
||||
|
||||
|
||||
14
.github/workflows/unit-test.yml
vendored
14
.github/workflows/unit-test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user