Skip to content

Commit 60e36b6

Browse files
committed
CI fix
1 parent e8bdc88 commit 60e36b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,29 @@ jobs:
4545
- name: Install Node modules with Yarn for renderer package
4646
run: |
4747
yarn install --no-progress --no-emoji
48+
sudo yarn global add yalc
49+
- name: yalc publish for react-on-rails
50+
run: yalc publish
51+
- name: Save spec/dummy/node_modules to cache
52+
uses: actions/cache@v4
53+
with:
54+
path: spec/dummy/node_modules
55+
key: dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/package.json') }}-${{ matrix.versions }}
56+
- name: yalc add react-on-rails
57+
run: cd spec/dummy && yalc add react-on-rails
58+
- name: Install Node modules with Yarn for dummy app
59+
run: cd spec/dummy && yarn install --no-progress --no-emoji
4860
- name: Install Ruby Gems for package
4961
run: bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
5062
- name: Lint Ruby
5163
run: bundle exec rubocop
5264
- name: Install Node modules with Yarn for dummy app
5365
run: cd spec/dummy && yarn install --ignore-scripts --no-progress --no-emoji
66+
- name: Save dummy app ruby gems to cache
67+
uses: actions/cache@v4
68+
with:
69+
path: spec/dummy/vendor/bundle
70+
key: dummy-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
5471
- name: Install Ruby Gems for dummy app
5572
run: |
5673
cd spec/dummy

0 commit comments

Comments
 (0)