Skip to content

Commit

Permalink
add regular cache
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Feb 15, 2024
1 parent 3d90069 commit 8fde918
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/example-performance.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: example-performance
on: [pull_request]
jobs:
test:
# cache using npm-install
cache1:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -13,3 +14,18 @@ jobs:
cache-key-prefix: chalk2
env:
ACTIONS_STEP_DEBUG: true

# cache using https://github.com/actions/cache
cache2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: install chalk
uses: actions/cache@v3
with:
path: ~/.npm
key: chalk-v1
env:
ACTIONS_STEP_DEBUG: true
- name: Install just chalk
run: npm install chalk
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ yarn.lock
.gitignore
.prettierignore
.npmrc
.nvmrc

0 comments on commit 8fde918

Please sign in to comment.