Skip to content

Commit

Permalink
bust github action caches
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Aug 24, 2021
1 parent 8a9739e commit 4072c66
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-js-and-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: v4-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
- name: Save root ruby gems to cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: v4-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
key: v5-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: v4-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/cache@v2
with:
path: spec/dummy/node_modules
key: v4-dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}
key: v5-dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}
- name: yalc add react-on-rails
run: cd spec/dummy && yalc add react-on-rails
- name: Install Node modules with Yarn for dummy app
Expand All @@ -53,7 +53,7 @@ jobs:
uses: actions/cache@v2
with:
path: spec/dummy/vendor/bundle
key: v4-dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}
key: v5-dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}
- name: Install Ruby Gems for dummy app
run: cd spec/dummy && bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
- name: Build test bundles for dummy app
Expand All @@ -64,7 +64,7 @@ jobs:
uses: actions/cache@v2
with:
path: spec/dummy/public/webpack
key: v4-dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}
key: v5-dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}

main:
needs: build-dummy-app-webpack-test-bundles
Expand Down Expand Up @@ -97,29 +97,29 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: v4-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
- name: Save root ruby gems to cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: v4-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
key: v5-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
- name: Save dummy app ruby gems to cache
uses: actions/cache@v2
with:
path: spec/dummy/vendor/bundle
key: v4-dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}
key: v5-dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}
- name: Save spec/dummy/node_modules to cache
uses: actions/cache@v2
with:
path: spec/dummy/node_modules
key: v4-dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}
key: v5-dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}
- id: get-sha
run: echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Save test webpack bundles to cache (for build number checksum used by rspec job)
uses: actions/cache@v2
with:
path: spec/dummy/public/webpack
key: v4-dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}
key: v5-dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}

- name: Install Node modules with Yarn for renderer package
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: v4-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rspec-package-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/cache@v2
with:
path: vendor/bundle
key: v4-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
key: v5-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
- name: Install Ruby Gems for package
run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
- name: Run rspec tests
Expand Down

0 comments on commit 4072c66

Please sign in to comment.