Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 95247f9

Browse files
committed
Merge branch 'main' into add-blocks
2 parents 4e0e67e + 1e979a1 commit 95247f9

60 files changed

Lines changed: 1569 additions & 644 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
2-
ARG RUBY_VERSION=3.4.4
2+
ARG RUBY_VERSION=3.4.7
33
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION
4+
5+
# Ensure binding is always 0.0.0.0
6+
# Binds the server to all IP addresses of the container, so it can be accessed from outside the container.
7+
ENV BINDING="0.0.0.0"

.devcontainer/compose.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "phlexui-web"
1+
name: "rubyui-web"
22

33
services:
44
rails-app:
@@ -7,26 +7,19 @@ services:
77
dockerfile: .devcontainer/Dockerfile
88

99
volumes:
10-
- ../..:/workspaces:cached
10+
- ../../web:/workspaces/web:cached
1111

1212
# Overrides default command so things don't shut down after the process ends.
1313
command: sleep infinity
1414

15-
networks:
16-
- default
17-
1815
# Uncomment the next line to use a non-root user for all processes.
1916
# user: vscode
2017

2118
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
2219
# (Adding the "ports" property to this file will not forward from a Codespace.)
23-
ports:
24-
- 45678:45678
2520
depends_on:
2621
- selenium
27-
22+
2823
selenium:
29-
image: seleniarm/standalone-chromium
24+
image: selenium/standalone-chromium
3025
restart: unless-stopped
31-
networks:
32-
- default

.devcontainer/devcontainer.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
33
{
4-
"name": "phlexui-web",
4+
"name": "rubyui-web",
55
"dockerComposeFile": "compose.yaml",
66
"service": "rails-app",
77
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
@@ -11,6 +11,7 @@
1111
"ghcr.io/devcontainers/features/github-cli:1": {},
1212
"ghcr.io/rails/devcontainer/features/activestorage": {},
1313
"ghcr.io/devcontainers/features/node:1": { "version": 20, "pnpmVersion": "10.8.0" },
14+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {"moby":false},
1415
"ghcr.io/rails/devcontainer/features/sqlite3": {}
1516
},
1617

@@ -30,11 +31,6 @@
3031
"Shopify.ruby-lsp",
3132
"testdouble.vscode-standard-ruby"
3233
]
33-
},
34-
"settings": {
35-
"rubyLsp.rubyVersionManager": {
36-
"identifier": "rbenv"
37-
}
3834
}
3935
},
4036

.github/pull_request_template.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Prefix your title above in brackets with one of
2+
("Bug Fix", "Feature", "Documentation", "Maintenance", "Hotfix", "Improvement")
3+
E.g. [Feature] -->
4+
5+
## Related issue
6+
<!-- Include a GitHub issue number issue link. -->
7+
<!-- If there is no issue being resolved, please consider opening one before creating this pull request. -->
8+
Related to #[issue number]
9+
10+
11+
## Description
12+
<!-- Concisely describe what the pull request does, explaining the decision(s) you made if necessary. -->
13+
14+
15+
Before | After
16+
:-------------------------:|:-------------------------:
17+
replace me with screenshot of `main` or prod (if applicable) | replace me with screenshot of this branch's changes
18+
19+
20+
## Testing instructions
21+
<!-- Give steps for the reviewer to verify that this PR fixes the problem or the feature works as expected. -->
22+
<!-- Consider alternatives to the happy path. -->
Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ name: CI
22

33
on:
44
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
- ready_for_review
105
push:
11-
branches: "main"
6+
branches:
7+
- "main"
128
jobs:
139
test:
1410
runs-on: ubuntu-latest
1511

1612
steps:
1713
- name: Checkout code
18-
uses: actions/checkout@v5
14+
uses: actions/checkout@v6
1915

2016
- name: Set up Ruby
2117
uses: ruby/setup-ruby@v1
@@ -25,10 +21,11 @@ jobs:
2521
- name: Install pnpm
2622
uses: pnpm/action-setup@v4
2723
with:
24+
version: 10.8.0
2825
run_install: false
2926

3027
- name: Setup Node
31-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@v6
3229
with:
3330
node-version-file: ".node-version"
3431
cache: 'pnpm'
@@ -40,10 +37,44 @@ jobs:
4037
run: bundle exec standardrb
4138

4239
- name: Run tests
43-
run: |
44-
bin/rails test:prepare
45-
bin/rails db:test:prepare
46-
bin/rails test
40+
run: bin/rails db:test:prepare test
41+
42+
verify_components:
43+
if: github.ref == 'refs/heads/main'
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@v6
49+
50+
- name: Set up Ruby
51+
uses: ruby/setup-ruby@v1
52+
with:
53+
bundler-cache: true
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
with:
58+
run_install: false
59+
60+
- name: Setup Node
61+
uses: actions/setup-node@v6
62+
with:
63+
node-version-file: ".node-version"
64+
cache: 'pnpm'
65+
66+
- name: Install dependencies
67+
run: pnpm install
68+
69+
- name: Build
70+
run: bin/rails g ruby_ui:component:all --force true
71+
72+
- uses: CatChen/check-git-status-action@v1
73+
with:
74+
fail-if-not-clean: true
75+
push-if-not-clean: false
76+
request-changes-if-not-clean: false
77+
targets: 'app'
4778

4879
docker-build:
4980
if: github.ref == 'refs/heads/main'
@@ -54,7 +85,7 @@ jobs:
5485

5586
steps:
5687
- name: Checkout code
57-
uses: actions/checkout@v5
88+
uses: actions/checkout@v6
5889

5990
- name: Login to GitHub Container Registry
6091
uses: docker/login-action@v3
@@ -69,17 +100,3 @@ jobs:
69100
imageName: ghcr.io/ruby-ui/web-devcontainer
70101
cacheFrom: ghcr.io/ruby-ui/web-devcontainer
71102
push: always
72-
73-
74-
next-deploy:
75-
if: github.ref == 'refs/heads/main'
76-
needs: [test, docker-build]
77-
runs-on: ubuntu-latest
78-
79-
steps:
80-
- name: Checkout code
81-
uses: actions/checkout@v5
82-
with:
83-
fetch-depth: 0
84-
- name: Deploy to Heroku Prod
85-
run: git push https://heroku:${{ secrets.HEROKU_RUBYUI_API_KEY }}@git.heroku.com/rubyui-next.git HEAD:main

.github/workflows/deploy.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/verify_components.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ config/credentials/production.key
4343

4444
# Yarn
4545
yarn-error.log
46+
47+
# Pnpm
48+
.pnpm-store

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.4
1+
3.4.7

.standard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- 'db/migrate/*'

0 commit comments

Comments
 (0)