From 8fde918dc1ca627a92488a4effbba08a111003b4 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Thu, 15 Feb 2024 17:18:08 -0500 Subject: [PATCH] add regular cache --- .github/workflows/example-performance.yml | 18 +++++++++++++++++- .prettierignore | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/example-performance.yml b/.github/workflows/example-performance.yml index 8deb7ed..de74334 100644 --- a/.github/workflows/example-performance.yml +++ b/.github/workflows/example-performance.yml @@ -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 @@ -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 diff --git a/.prettierignore b/.prettierignore index 7bc86a5..490dc00 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,3 +5,4 @@ yarn.lock .gitignore .prettierignore .npmrc +.nvmrc