Skip to content

Commit 6bc73a0

Browse files
committed
Apply hashFiles in GH Actions to lock files
1 parent d09352e commit 6bc73a0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
uses: actions/cache@v4
6767
with:
6868
path: vendor/bundle
69-
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
69+
key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-${{ matrix.versions }}
7070
- id: get-sha
7171
run: echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT"
7272
- name: Install Node modules with Yarn for renderer package

.github/workflows/lint-js-and-ruby.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/cache@v4
4141
with:
4242
path: vendor/bundle
43-
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-oldest
43+
key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-oldest
4444
- name: Install Node modules with Yarn for renderer package
4545
run: |
4646
yarn install --no-progress --no-emoji
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/cache@v4
5252
with:
5353
path: spec/dummy/node_modules
54-
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/package.json') }}-newest
54+
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}-newest
5555
- name: yalc add react-on-rails
5656
run: cd spec/dummy && yalc add react-on-rails
5757
- name: Install Node modules with Yarn for dummy app
@@ -66,7 +66,7 @@ jobs:
6666
uses: actions/cache@v4
6767
with:
6868
path: spec/dummy/vendor/bundle
69-
key: dummy-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-oldest
69+
key: dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}-oldest
7070
- name: Install Ruby Gems for dummy app
7171
run: |
7272
cd spec/dummy

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/cache@v4
5757
with:
5858
path: spec/dummy/node_modules
59-
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/package.json') }}-${{ matrix.versions }}
59+
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}-${{ matrix.versions }}
6060
- name: yalc add react-on-rails
6161
run: cd spec/dummy && yalc add react-on-rails
6262
- name: Install Node modules with Yarn for dummy app
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/cache@v4
6666
with:
6767
path: spec/dummy/vendor/bundle
68-
key: dummy-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
68+
key: dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}-${{ matrix.versions }}
6969
- name: Install Ruby Gems for dummy app
7070
run: |
7171
cd spec/dummy
@@ -126,17 +126,17 @@ jobs:
126126
uses: actions/cache@v4
127127
with:
128128
path: vendor/bundle
129-
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
129+
key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-${{ matrix.versions }}
130130
- name: Save dummy app ruby gems to cache
131131
uses: actions/cache@v4
132132
with:
133133
path: spec/dummy/vendor/bundle
134-
key: dummy-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
134+
key: dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}-${{ matrix.versions }}
135135
- name: Save spec/dummy/node_modules to cache
136136
uses: actions/cache@v4
137137
with:
138138
path: spec/dummy/node_modules
139-
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/package.json') }}-${{ matrix.versions }}
139+
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}-${{ matrix.versions }}
140140
- id: get-sha
141141
run: echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT"
142142
- name: Save test Webpack bundles to cache (for build number checksum used by RSpec job)

.github/workflows/rspec-package-specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/cache@v4
3939
with:
4040
path: vendor/bundle
41-
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ matrix.versions }}
41+
key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-${{ matrix.versions }}
4242
- name: Install Ruby Gems for package
4343
run: bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
4444
- name: Git Stuff

0 commit comments

Comments
 (0)