-
Notifications
You must be signed in to change notification settings - Fork 372
Maintenance: advance tutorial to React on Rails 17.0.0 #792
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: github-actions | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| - package-ecosystem: bundler | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| groups: | ||
| react-on-rails-family: | ||
| patterns: | ||
| - react_on_rails | ||
| - react_on_rails_pro | ||
| all-dependencies: | ||
| patterns: | ||
| - "*" | ||
| - package-ecosystem: npm | ||
| directory: "/" | ||
| schedule: | ||
| interval: weekly | ||
| groups: | ||
| react-on-rails-family: | ||
| patterns: | ||
| - react-on-rails-pro | ||
| - react-on-rails-pro-node-renderer | ||
| - react-on-rails-rsc | ||
| - rescript-react-on-rails | ||
| all-dependencies: | ||
| patterns: | ||
| - "*" | ||
| ignore: | ||
| - dependency-name: "@babel/cli" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/core" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/plugin-transform-runtime" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/preset-env" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/runtime" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/eslint-parser" | ||
| versions: | ||
| - ">= 8.0.0" | ||
| - dependency-name: "@babel/preset-react" | ||
| versions: | ||
| - ">= 8.0.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Demo fleet smoke | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| schedule: | ||
| - cron: "17 4 * * 1" | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| smoke: | ||
|
justin808 marked this conversation as resolved.
|
||
| uses: shakacode/react_on_rails/.github/workflows/demo-fleet-smoke.yml@613c6c2a251a782328b26d68e7f23daa9b677497 | ||
|
justin808 marked this conversation as resolved.
justin808 marked this conversation as resolved.
|
||
| with: | ||
| ruby-version: "3.4.6" | ||
| node-version: "22" | ||
| install-command: >- | ||
| bundle config set path vendor/bundle && bundle install --jobs 4 --retry 3 && yarn install --frozen-lockfile && | ||
| docker run --name tutorial-fleet-postgres -e POSTGRES_DB=rails_test -e POSTGRES_USER=rails -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres:11-alpine@sha256:ea50b9fd617b66c9135816a4536cf6e0697d4eea7014a7194479c95f6edd5ef9 && | ||
| for attempt in {1..30}; do docker inspect --format '{{.State.Running}}' tutorial-fleet-postgres | grep -qx true || exit 1; docker exec tutorial-fleet-postgres pg_isready -U rails -d rails_test && break; sleep 1; done; | ||
| docker exec tutorial-fleet-postgres pg_isready -U rails -d rails_test | ||
|
justin808 marked this conversation as resolved.
|
||
| test-command: >- | ||
| RAILS_ENV=test NODE_ENV=test bundle exec rake react_on_rails:locale && | ||
| RAILS_ENV=test NODE_ENV=test bundle exec rails react_on_rails:generate_packs && | ||
| RAILS_ENV=test NODE_ENV=test bundle exec rake ci:js | ||
| build-command: yarn build:dev | ||
| smoke-command: >- | ||
| RENDERER_SERVER_BUNDLE_CACHE_PATH=renderer/.node-renderer-bundles MODE=symlink RAILS_ENV=development bundle exec rake react_on_rails_pro:pre_seed_renderer_cache || exit 1; | ||
| RENDERER_SERVER_BUNDLE_CACHE_PATH=renderer/.node-renderer-bundles node renderer/node-renderer.js & renderer_pid=$!; | ||
| trap 'test -n "${rails_pid:-}" && kill "$rails_pid" 2>/dev/null || true; kill "$renderer_pid" 2>/dev/null || true; docker rm -f tutorial-fleet-postgres >/dev/null 2>&1 || true' EXIT; | ||
| for attempt in {1..30}; do nc -z localhost 3800 && break; sleep 1; done; nc -z localhost 3800 || exit 1; | ||
| DATABASE_URL=postgres://rails:password@127.0.0.1:5432/rails_test RAILS_ENV=development bundle exec rails db:prepare || exit 1; | ||
| DATABASE_URL=postgres://rails:password@127.0.0.1:5432/rails_test RAILS_ENV=development NODE_ENV=development bundle exec rails server -b 127.0.0.1 -p 3000 & rails_pid=$!; | ||
| for attempt in {1..30}; do kill -0 "$rails_pid" 2>/dev/null || exit 1; curl --fail --silent --show-error http://127.0.0.1:3000/ && exit 0; sleep 1; done; exit 1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.