Skip to content

Commit

Permalink
upgrade to github actions/cache@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Jan 9, 2025
1 parent ab8e606 commit b71497a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
uses: ruby/setup-ruby@v1
- name: Ruby gem cache
id: cache-gems
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-v2-${{ hashFiles('**/Gemfile.lock') }}
key: ${{ runner.os }}-gems-nonce3-${{ hashFiles('**/Gemfile.lock') }}
# Restore keys will be matched if the main key fails. This may restore older gems to the
# dir but we don't care because bundle install will check the gems anyway.
restore-keys: |
${{ runner.os }}-gems-v2-
${{ runner.os }}-gems-nonce3-
- name: Set bundle path
run: bundle config path vendor/bundle
- name: Install gems
Expand All @@ -52,12 +52,12 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: JS package cache
id: cache-packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-nonce2-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-yarn-nonce2-
- name: Install packages
run: |
yarn install --pure-lockfile
Expand Down

0 comments on commit b71497a

Please sign in to comment.