Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from shakacode:master #128

Open
wants to merge 207 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
64f722f
Update the install generator to add Webpacker configuration (#1404)
gscarv13 Dec 24, 2021
922e19c
Add support for React 18 server rendering (#1409)
kylemellander Dec 24, 2021
379a47d
Update all of React on Rails to support Rails 7 (#1411)
justin808 Dec 25, 2021
07dd4dc
Change custom precompile to check ReactOnRails.configuration.build_pr…
justin808 Dec 26, 2021
cc4baa2
Update readme for 12.5
justin808 Dec 26, 2021
7fe9bf9
remove --ci option for release-it
justin808 Dec 26, 2021
05f1dda
Release 12.5.0
justin808 Dec 26, 2021
32ab3cc
Doc updates
justin808 Dec 26, 2021
b941f42
Check for "include_execjs_polyfills" method before calling it (#1412)
Judahmeek Dec 27, 2021
3cdb087
Update CHANGELOG.md
justin808 Dec 27, 2021
b7ea684
Lock some dependencies
justin808 Dec 28, 2021
5fe6f53
Release 12.5.1
justin808 Dec 28, 2021
420b8b0
lock platform for bundler (#1414)
Judahmeek Dec 28, 2021
9637c09
Move webpacker task adjustment logic to Configuration class method (#…
Judahmeek Dec 30, 2021
563df44
Updated CHANGELOG.md
justin808 Dec 30, 2021
69cfae7
Release 12.5.2
justin808 Dec 30, 2021
b44d41c
update .gitignore (#1416)
Judahmeek Dec 30, 2021
dad754c
Add ReScript Example (#1400)
gscarv13 Dec 30, 2021
38156fb
Add ClientPropsExtension support (#1413)
Judahmeek Jan 6, 2022
89db0ff
use rails binstubs instead of bundlers (#1418)
Judahmeek Jan 6, 2022
cada150
Update issue templates (#1419)
justin808 Jan 10, 2022
3400431
add entry for RenderingPropsExtension (#1426)
Judahmeek Jan 20, 2022
f9c5908
Update docs
justin808 Jan 23, 2022
2dc1d5e
Fix ruby 3 issue
justin808 Jan 23, 2022
5d9e829
require bundler
justin808 Jan 23, 2022
21c91fa
Release 12.6.0
justin808 Jan 23, 2022
9eeb99e
Add tip for publishing
justin808 Jan 23, 2022
0389a95
Give dummy bundle job proper prerequisites (#1422)
Judahmeek Feb 7, 2022
ca25711
Remove webpacker as dependency in gemspec (#1428)
justin808 Feb 7, 2022
1244375
Release 13.0.0-beta.0
justin808 Feb 7, 2022
8f0b7e0
Fixed generator to support Shakapacker (#1430)
justin808 Feb 9, 2022
83abbd0
Release 13.0.0
justin808 Feb 9, 2022
c31d922
Change the test generated webpack file (#1431)
justin808 Feb 9, 2022
508d958
Release 13.0.1
justin808 Feb 9, 2022
e43283a
Stop checking encoding names (#1433)
casperisfine Feb 25, 2022
52ff09f
Fix webpacker link in README.md (#1434)
frullah Mar 8, 2022
e788c1d
Some react 16 doesn't support version property (#1435)
justin808 Mar 10, 2022
0e96cf8
Release 13.0.2
justin808 Mar 10, 2022
0f7e5e4
Move doc file (#1445)
MUTOgen Apr 18, 2022
52ea14b
Update link (#1446)
MUTOgen Apr 19, 2022
0cf7b99
Small typo (#1452)
kevingilpin May 6, 2022
4234f94
Update README.md
justin808 May 31, 2022
5c62961
update to shakapacker 6.4.0 (#1456)
justin808 Jun 3, 2022
3dfa1db
Remove mini_racer as the default ExecJS runtime (#1453)
tomdracz Jun 3, 2022
fa2fe25
Update catch types to be any for TypeScript 4.4 (#1444)
alexeyr Jun 4, 2022
4d71c2f
Update start steps in README (#1443)
alexeyr Jun 7, 2022
87b5c01
Only check the existence of i18n directory before locale generation (…
alexeyr Jun 22, 2022
3c7751c
Clean up grammar and markdown in the i18n guide (#1459)
alexeyr Jun 22, 2022
35d9d69
Require createRoot/hydrateRoot from 'react-dom/client' under react-do…
alexeyr Jun 29, 2022
471f78e
Add a note on mini_racer to documentation (#1462)
alexeyr-ci1 Jun 29, 2022
ea9969e
Update Tutorial docs with setting ENV variables section (#1461)
AnssKF Jul 4, 2022
32e7360
Replaced page title Webpacker text with Shakapacker (#1467)
alkesh26 Jul 5, 2022
8b708e0
Upgrade spec/dummy to React 18 (#1463)
alexeyr-ci1 Jul 6, 2022
db9c112
Fix unmounting in React 18 (#1466)
alexeyr-ci1 Jul 7, 2022
92b49bf
Update changelog for missing #1463 (#1471)
alexeyr-ci1 Jul 7, 2022
42a53ed
Remove include_execjs_polyfills logic (#1473)
Judahmeek Jul 30, 2022
c6a9b5f
Update README.md
justin808 Aug 13, 2022
a072210
Update migrating-from-react-rails.md
justin808 Aug 15, 2022
0602a3f
Update supporters (#1476)
Aug 17, 2022
9f4802d
Add Automated Files System Based Pack Generation (#1455)
pulkitkkr Aug 21, 2022
cfd5191
Update CHANGELOG.md
justin808 Aug 21, 2022
4d49229
Release 13.1.0
justin808 Aug 21, 2022
ba3a56a
fixed few typos (#1478)
alkesh26 Aug 26, 2022
6e02890
Removed keyword parameter warning (#1479)
alkesh26 Aug 26, 2022
e8acd6b
exposing reactHydrateOrRender api (#1481)
vaukalak Sep 20, 2022
270d5df
Fixing wrong type (#1480)
mournguard Sep 22, 2022
5bf8d5a
Update README.md
justin808 Oct 7, 2022
741d425
Update README.md
justin808 Oct 7, 2022
b4b39df
Update order of args in rails new command (#1490)
ahangarha Oct 26, 2022
74c7dc7
Capybara doesn't support Puma v6 (#1492)
Judahmeek Oct 27, 2022
7614ade
Minor doc update to address #1488 (#1494)
mgmodell Dec 1, 2022
5e45d0f
Fix broken CI (#1497)
ahangarha Dec 21, 2022
95438ad
Fix reactOnRailsPageUnloaded when no component on page (#1498)
NhanHo Dec 30, 2022
0b6ecbb
Release 13.2.0
justin808 Jan 4, 2023
b217ef5
Bring the text above the images (#1500)
ahangarha Jan 9, 2023
55c21a7
Fix rescript build command (#1501)
ahangarha Jan 9, 2023
6983a94
Add dev scripts to bin directory on install (#1491)
ahangarha Jan 9, 2023
ea5367c
Provide error message when setup conflicts with Shakapacker (#1502)
justin808 Jan 10, 2023
399c462
enteries => entries (#1504)
Judahmeek Jan 15, 2023
a794025
Update Dummy App to Use FileSystem-Based Bundle Registry (#1503)
pulkitkkr Jan 21, 2023
f835db1
change config link from `basics` to `guides` (#1512)
tka5 Jan 28, 2023
fb3210c
Update Helper to Check for Bundle with correct Extension (#1511)
pulkitkkr Jan 28, 2023
41e946d
Generate Pack if Missing Generated Pack for Registered Component (#1506)
pulkitkkr Jan 28, 2023
e0fb2aa
Update configuration.md
justin808 Jan 28, 2023
dfeb268
Update instruction on an existing Rails app (#1495)
ahangarha Jan 28, 2023
30f4c51
Separate pack generation helper methods into separate module (#1509)
Judahmeek Jan 29, 2023
34c9487
Upgrade JS dependencies (#1514)
ahangarha Jan 29, 2023
c20c34b
Update CHANGELOG.md
justin808 Jan 29, 2023
59747d5
Release 13.3.0
justin808 Jan 29, 2023
78c37d9
Use RSpec's when_first_matching_example_defined if available (#1496)
mcls Jan 29, 2023
a1cd67d
Update CHANGELOG.md
justin808 Jan 29, 2023
b6a3e37
Fix Misc Bugs Introduced in Pack Generator Refactoring (#1515)
pulkitkkr Jan 30, 2023
8b916c5
Update CHANGELOG.md
justin808 Jan 30, 2023
d6d9c71
Remove `ApplicationController.helpers` for append_tags (#1516)
pulkitkkr Jan 31, 2023
7b31394
Release 13.3.1
justin808 Jan 31, 2023
f84aa58
Update outdated instructions in documentations (#1517)
ahangarha Feb 2, 2023
d0d45a1
Fix bin dev scripts (#1519)
ahangarha Feb 15, 2023
6753c84
Changes required for RoR Pro caching (#1518)
Judahmeek Feb 20, 2023
a3caf9b
Add missing entry in changelog for PR1519 (#1521)
ahangarha Feb 21, 2023
86c327b
fix bin/dev-static path in install help message (#1523)
houqp Feb 24, 2023
fd26630
Update CHANGELOG.md
justin808 Feb 24, 2023
ef9f9a0
Release 13.3.2
justin808 Feb 24, 2023
e6e9f25
Add PR template for GitHub (#1522)
ahangarha Mar 8, 2023
cd5c697
Add docs for ignoring warning related to react dom client not found (…
ahangarha Mar 15, 2023
b29e677
Fix grammar issue (#1529)
ahangarha Mar 17, 2023
3e7b572
remove ApplicationController.helpers prefix (#1527)
justin808 Mar 21, 2023
aeb8a04
Release 13.3.3
justin808 Mar 21, 2023
e76ede2
Add 13.3.3 changes (#1532)
Judahmeek Mar 22, 2023
5d1ad9b
Update documentation links (#1534)
brandoncc Apr 10, 2023
ca59dd3
Fix link to automated bundling in readme (#1535)
brandoncc Apr 10, 2023
e20b8da
Update README.md
dzirtusss Apr 10, 2023
e0d5d0e
Improve auto-bundling logic (#1531)
Judahmeek May 2, 2023
22980f9
Remove useless HMR=true from Procfile (#1537)
ahangarha May 12, 2023
771cb64
CHANGELOG
justin808 May 23, 2023
dc12de6
Release 13.3.4
justin808 May 23, 2023
73e0f7a
Make sure renderInit only runs after DOMContentLoaded (#1540)
Judahmeek Jun 1, 2023
b57e4ef
Update CHANGELOG.md
justin808 Jun 1, 2023
8031602
Release 13.3.5
justin808 Jun 1, 2023
631ca55
raise visibility of CI integration section (#1542)
Judahmeek Jun 11, 2023
43efef2
Always generate append_X_pack calls if not in development (#1545)
Judahmeek Jun 14, 2023
fb3cce7
Include PR as a trigger for CI (#1553)
ahangarha Jul 10, 2023
005e26e
remove extra js eval call (#1544)
wyattades Jul 17, 2023
7c366b6
Update README.md (Control Plane support)
dzirtusss Jul 20, 2023
b36703d
Remove webdrivers (#1560)
Judahmeek Jul 20, 2023
69109e4
Throw error when attempting to redefine ReactOnRails (#1562)
rubenochiavone Jul 21, 2023
7bac37b
Update link (#1556) (#1561)
Yassa-hue Jul 22, 2023
1b2f86a
Fix issues in Changelog (#1557)
ahangarha Jul 22, 2023
9806310
Update install generator to support Shakapacker 7 as well (#1548)
ahangarha Jul 25, 2023
16a4c7d
Upgrade bundler to 2.4.17 (#1564)
ahangarha Jul 25, 2023
5905cac
Packs generator subdirectory check (#1567)
blackjack26 Jul 31, 2023
ae994d5
Update format (#1569)
ahangarha Jul 31, 2023
5818246
Update CHANGELOG.md
justin808 Jul 31, 2023
de657f3
Release 13.4.0
justin808 Jul 31, 2023
fea6536
Upgrade concurrently package and move to devDependencies (#1571)
menno Aug 1, 2023
952e05b
Add ruby 3 and node 16 & 18 in CI (#1568)
ahangarha Aug 26, 2023
c52a11f
Fix typo (#1576)
ahangarha Aug 26, 2023
d4e4812
Remove Bootstrap option from generator docs (#1575)
ahangarha Aug 29, 2023
b9b16ce
Update docs for migrating from react-rails (#1577)
ahangarha Sep 8, 2023
249c698
ci: update actions and disable persisted git credentials (#1578)
G-Rath Sep 11, 2023
14f8633
CI Fixes (#1581)
Judahmeek Nov 15, 2023
99be556
Remove JsonOutput.escape workaround for Rails < 4.1.1 (#1580)
wwahammy Nov 15, 2023
abf403a
Fix TS types (#1582)
kotarella1110 Nov 15, 2023
8897fcc
update changelog for #1582 (#1584)
Judahmeek Nov 18, 2023
bd26432
fix RailsContext type (#1585)
kotarella1110 Nov 21, 2023
8198355
exposes all types (#1586)
kotarella1110 Nov 21, 2023
ea62824
simplify recent entries (#1587)
Judahmeek Nov 23, 2023
38e764a
Update README.md (#1591)
justin808 Jan 4, 2024
6f1ca20
Fix CI failure (#1593)
ahangarha Jan 7, 2024
2c04db6
Update Ruby Dependencies (#1595)
ahangarha Jan 10, 2024
b356271
Update node dependencies (#1596)
ahangarha Jan 15, 2024
f5c34d4
Restrict css-minimizer-webpack-plugin version in the generator unless…
ahangarha Jan 24, 2024
660579c
revert peer dependencies bump, remove configLoader (#1600)
ahangarha Jan 31, 2024
07b2b7c
Improve .gitignore file (#1599)
ahangarha Feb 9, 2024
f47e95e
Prevent Shakapacker v7 deprecation messages (#1592)
ahangarha Apr 3, 2024
6cbc81a
trim gem files (#1605)
justin808 Apr 3, 2024
cb5fec0
Default to git_installed
justin808 Apr 3, 2024
db3a361
Release 14.0.0
justin808 Apr 3, 2024
77dba20
changelog
justin808 Apr 3, 2024
47ea981
Fix rubocop to v1.61 & css-loader to v6 (#1606)
ahangarha Apr 5, 2024
493a2f5
Run yarn-audit-fix (#1604)
ahangarha Apr 5, 2024
3627488
Test improvements
Judahmeek Apr 22, 2024
613dfe4
CI Fix for sqlite (#1613)
Judahmeek Apr 24, 2024
f450fb5
Update Control Plane link (#1617)
samueldemoura May 14, 2024
87fee8c
make sure that bundler:2.5.3 is used (#1618)
Judahmeek May 15, 2024
1295ce9
Make pack generation import statement commitable (#1610)
Judahmeek May 16, 2024
fef75be
Update README.md
justin808 May 16, 2024
0c9fb65
Switch to bundler 2.5.9 and commit top gemfile.lock (#1619)
justin808 May 17, 2024
9b1eb68
Release 14.0.1
justin808 May 17, 2024
36f342c
Update CHANGELOG.md
justin808 May 17, 2024
9c262c1
CH22466[sc-website] - Update Node, YARN, Gatsby, React and other depe…
rameziophobia Jun 11, 2024
ca21dbd
added support for shakapacker 8+ (#1629)
vaukalak Jun 11, 2024
75c6602
Release 14.0.2
justin808 Jun 11, 2024
7b3aab7
Update bin/shakapacker to auto-generate (#1630)
justin808 Jun 12, 2024
2f023ec
fix: address a number of typos and grammar issues (#1631)
G-Rath Jun 14, 2024
76c6b50
fixed css-loader instalation and css import in example files (#1634)
vaukalak Jun 25, 2024
e99f0be
fix: replace Webpacker with Shakapacker (#1622)
adriangohjw Jun 28, 2024
0d5d03e
Update CHANGELOG.md
justin808 Jun 29, 2024
9fc0978
change examples:clobber for latest updates for release
justin808 Jun 29, 2024
a8ad1db
Release 14.0.3
justin808 Jun 29, 2024
6a9c101
Upgrade GitHub Actions versions (#1623)
adriangohjw Jul 2, 2024
b966229
Use package_json gem (#1639)
vaukalak Jul 3, 2024
b62dcc7
Release 14.0.4
justin808 Jul 3, 2024
7f01c2a
Update CHANGELOG.md (#1640)
justin808 Jul 3, 2024
f554922
prerelease is not a lifecycle script (#1645)
Judahmeek Jul 26, 2024
438dfdd
modified getting-started.md (#1641)
omar2432 Jul 26, 2024
4cdc686
Update turbolinks.md
justin808 Aug 20, 2024
56ee2bd
should force load react-components which send over turbo-stream (#1620)
theforestvn88 Aug 20, 2024
c480c04
Release 14.0.5
justin808 Aug 21, 2024
e81e41c
Update CHANGELOG.md
justin808 Aug 21, 2024
bb9a8a2
Update README.md
justin808 Aug 26, 2024
5c962fc
TypeScript cleanup (#1651)
alexeyr-ci Oct 8, 2024
ee382bc
Refactor serverRenderReactComponent function (#1653)
AbanoubGhadban Oct 19, 2024
616fe9f
update CHANGELOG.md
AbanoubGhadban Oct 20, 2024
eb7639b
Build console replay script after awaiting the rendering promise (#1649)
AbanoubGhadban Oct 20, 2024
093247d
Add support for streaming server side rendering (#1633)
AbanoubGhadban Oct 29, 2024
cffaed8
Add support for console replay while streaming component (#1647)
AbanoubGhadban Oct 29, 2024
a87c1e6
Handle errors happen during streaming components (#1648)
AbanoubGhadban Oct 31, 2024
8e76265
Update version
justin808 Nov 1, 2024
64958c6
Release 15.0.0-alpha.0
justin808 Nov 1, 2024
f5d4c26
Release 15.0.0-alpha.1
justin808 Nov 1, 2024
cebda5d
Fix broken link in javascript-api.md (#1655)
okuramasafumi Nov 14, 2024
70523e2
Update configuration.md
justin808 Dec 6, 2024
98fcc29
Fix Version Checker's hard-coded path for package.json (#1657)
Judahmeek Dec 8, 2024
4339d30
Enable use as a Git dependency (#1664)
alexeyr-ci Dec 23, 2024
16c9132
Add YAML.safe_load config option (#1668)
dzirtusss Dec 31, 2024
09f5c46
chore: specify packageManager in package.json
justin808 Jan 2, 2025
4136d31
Release 14.1.0-rc.0
justin808 Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 11 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# CircleCI is not longer in use by this repository & this file is now for reference only.
version: 2

aliases:
- &docker-image
- image: circleci/ruby:2.7-node-browsers
- image: circleci/ruby:3.0-node-browsers

# Print critical data and executables versions.
- &print-system-info
Expand Down Expand Up @@ -53,16 +54,17 @@ aliases:
- &install-dummy-app-ruby-gems
name: Install Ruby Gems for dummy app
command: |
gem install bundler
gem install bundler:2.5.9
echo "Bundler version: "; bundle --version
cd spec/dummy && bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
cd spec/dummy && bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3

# Install ruby gems unless existing set of gems is satisfying bundler.
- &install-package-ruby-gems
name: Install Ruby Gems for package
command: |
gem install bundler
gem install bundler:2.5.9
echo "Bundler version: "; bundle --version
bundle lock --add-platform 'x86_64-linux'
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3

# Restore node_modules dir from cache using yarn.lock checksum as a key.
Expand Down Expand Up @@ -129,7 +131,7 @@ jobs:
name: prettier
command: yarn start format.listDifferent

# Install Node modules for Renderer package with Yarn and save them to chache.
# Install Node modules for Renderer package with Yarn and save them to cache.
install-package-node-packages:
docker: *docker-image
steps:
Expand Down Expand Up @@ -204,6 +206,9 @@ jobs:
- run: *install-yalc-add-react-on-rails
- run: *install-dummy-app-node-modules
- run: *install-dummy-app-ruby-gems
- run:
name: generate file system-based packs
command: cd spec/dummy && bundle exec rake react_on_rails:generate_packs
- run:
name: Build test bundles for dummy app
command: cd spec/dummy && yarn run build:test
Expand Down Expand Up @@ -316,6 +321,7 @@ workflows:
- build-dummy-app-webpack-test-bundles:
requires:
- install-dummy-app-node-packages
- install-dummy-app-ruby-gems
- package-js-tests:
requires:
- install-package-node-packages
Expand Down
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

A bug is a crash or incorrect behavior. If you have a debugging or troubleshooting question, please open [a discussion](https://github.com/shakacode/react_on_rails/discussions).

## Environment

1. Ruby version:
2. Rails version:
3. Shakapacker/Webpacker version:
4. React on Rails version:

## Expected behavior

## Actual behavior

## Small, reproducible repo
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Summary

_Remove this paragraph and provide a general description of the code changes in your pull
request... were there any bugs you had fixed? If so, mention them. If
these bugs have open GitHub issues, be sure to tag them here as well,
to keep the conversation linked together._

### Pull Request checklist
_Remove this line after checking all the items here. If the item is not applicable to the PR, both check it out and wrap it by `~`._

- [ ] Add/update test to cover these changes
- [ ] Update documentation
- [ ] Update CHANGELOG file
_Add the CHANGELOG entry at the top of the file._

### Other Information

_Remove this paragraph and mention any other important and relevant information such as benchmarks._

94 changes: 94 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Generator tests

on:
push:
branches:
- 'master'
pull_request:

jobs:
examples:
env:
SKIP_YARN_COREPACK_CHECK: 0
strategy:
fail-fast: false
matrix:
versions: ['oldest', 'newest']
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
lib/generators/**
rakelib/example_type.rb
rakelib/example_config.yml
rakelib/examples.rake
rakelib/run_rspec.rake
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.versions == 'oldest' && '3.0' || '3.3' }}
bundler: 2.5.9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Print system information
run: |
echo "Linux release: "; cat /etc/issue
echo "Current user: "; whoami
echo "Current directory: "; pwd
echo "Ruby version: "; ruby -v
echo "Node version: "; node -v
echo "Yarn version: "; yarn --version
echo "Bundler version: "; bundle --version
- name: run conversion script to support shakapacker v6
if: matrix.versions == 'oldest'
run: script/convert
- name: Save root node_modules to cache
uses: actions/cache@v4
with:
path: node_modules
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
- name: Save root ruby gems to cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
- id: get-sha
run: echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
sudo yarn global add yalc
- name: yalc publish for react-on-rails
run: yalc publish
- name: Install Ruby Gems for package
run: bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
- name: Ensure minimum required Chrome version
run: |
echo -e "Already installed $(google-chrome --version)\n"
MINIMUM_REQUIRED_CHROME_VERSION=75
INSTALLED_CHROME_MAJOR_VERSION="$(google-chrome --version | tr ' .' '\t' | cut -f3)"
if [[ $INSTALLED_CHROME_MAJOR_VERSION < $MINIMUM_REQUIRED_CHROME_VERSION ]]; then
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
echo -e "\nInstalled $(google-chrome --version)"
fi
- name: Increase the amount of inotify watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Main CI
if: steps.changed-files.outputs.any_changed == 'true'
run: bundle exec rake run_rspec:${{ matrix.versions == 'oldest' && 'web' || 'shaka' }}packer_examples
- name: Store test results
uses: actions/upload-artifact@v4
with:
name: main-rspec-${{ github.run_id }}-${{ github.job }}-${{ matrix.versions }}
path: ~/rspec
38 changes: 21 additions & 17 deletions .github/workflows/lint-js-and-ruby.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
name: Lint JS and Ruby

on: [push, pull_request]

on:
push:
branches:
- 'master'
pull_request:

jobs:
build:
strategy:
matrix:
ruby: [2.7]
node: [14]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: 3
bundler: 2.5.9
- name: Setup Node
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: 20
- name: Print system information
run: |
echo "Linux release: "; cat /etc/issue
Expand All @@ -29,25 +33,25 @@ jobs:
echo "Yarn version: "; yarn --version
echo "Bundler version: "; bundle --version
- name: Save root node_modules to cache
uses: actions/cache@v2
uses: actions/cache@v4
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
uses: actions/cache@v4
with:
path: vendor/bundle
key: v4-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-oldest
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
yarn run eslint -v
sudo yarn global add yalc
- name: Install Ruby Gems for package
run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
run: bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
- name: Linting of Ruby
run: bundle exec rubocop
- name: Linting of JS
run: yarn start lint
- name: Check formatting
run: yarn start format.listDifferent
- name: Type-check TypeScript
run: yarn run type-check
Loading