Skip to content

Commit

Permalink
ci: add cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc committed Oct 9, 2024
1 parent 99d4d3a commit f51a4ea
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ updates:
interval: 'weekly'
day: 'monday'
reviewers:
- 'bdbch'
- 'cycleccc'

11 changes: 11 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
- name: Prepare Yarn
run: corepack prepare yarn@4.4.1 --activate

# 加载依赖缓存
- name: Load cached dependencies
uses: actions/cache@v4.1.0
id: cache
with:
path: |
**/node_modules
**/.turbo
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

# 安装依赖
- name: Install dependencies
run: yarn install
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ jobs:
- name: Prepare Yarn
run: corepack prepare yarn@4.4.1 --activate

# 加载依赖缓存
- name: Load cached dependencies
uses: actions/cache@v4.1.0
id: cache
with:
path: |
**/node_modules
**/.turbo
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}


# 安装项目依赖
- name: Install dependencies
run: yarn install
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ jobs:
- name: Prepare Yarn
run: corepack prepare yarn@4.4.1 --activate

# 加载依赖缓存
- name: Load cached dependencies
uses: actions/cache@v4.1.0
id: cache
with:
path: |
**/node_modules
**/.turbo
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

# 安装依赖
- name: Install dependencies
run: yarn install
Expand Down

0 comments on commit f51a4ea

Please sign in to comment.