Skip to content

Commit d614567

Browse files
authored
Fixing CI YML (#237)
* fix ci yml * Fix standardrb * fix ci yml
1 parent 1092ea4 commit d614567

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Set up Ruby
21-
uses: ruby/setup-ruby@v1
22-
with:
23-
bundler-cache: true
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
bundler-cache: true
2424

2525
- name: Install pnpm
2626
uses: pnpm/action-setup@v4
@@ -34,25 +34,16 @@ jobs:
3434
cache: 'pnpm'
3535

3636
- name: Install dependencies
37-
run: |
38-
# sudo apt-get update
39-
# sudo apt-get install -y -qq libvips
40-
pnpm install
37+
run: pnpm install
4138

4239
- name: Lint code for consistent style
4340
run: bundle exec standardrb
4441

45-
- name: Build and run dev container task
46-
uses: devcontainers/[email protected]
47-
with:
48-
imageName: ghcr.io/ruby-ui/web-devcontainer
49-
cacheFrom: ghcr.io/ruby-ui/web-devcontainer
50-
push: always
51-
runCmd: |
52-
bundle exec standardrb
53-
bin/rails test:prepare
54-
bin/rails db:test:prepare
55-
bin/rails test
42+
- name: Run tests
43+
run: |
44+
bin/rails test:prepare
45+
bin/rails db:test:prepare
46+
bin/rails test
5647
5748
docker-build:
5849
if: github.ref == 'refs/heads/main'

app/views/pages/home.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ def view_template
2424
end
2525
end
2626

27-
28-
2927
div(class: "overflow-hidden") do
3028
div(class: "container mx-auto max-w-5xl px-4 flex justify-center my-8") do
3129
iframe(width: "100%", height: "720", src: "https://www.youtube.com/embed/OQZam7rug00?si=JmZNzS5u194Q0AWQ", title: "YouTube video player", frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", referrerpolicy: "strict-origin-when-cross-origin", allowfullscreen: true)
3230
end
33-
31+
3432
div(class: "relative z-10 container mx-auto max-w-5xl pt-16 lg:pt-16 py-24 lg:py-32 px-4") do
3533
div(class: "grid grid-cols-6 gap-4") do
3634
render HomeView::Card.new(class: "col-span-6 sm:col-span-3 md:col-span-4", title: "Built for Speed", subtitle: "Dive into a world where your Rails UI development happens at light speed. Phlex is not just fast - it's blazing fast.", color: :secondary) do |card|
@@ -54,9 +52,9 @@ def view_template
5452
card.content do
5553
div(class: "flex flex-col items-center justify-center text-center space-y-4 h-full") do
5654
p(class: "text-6xl font-semibold") { "7.7x" }
57-
p do
55+
p do
5856
a(href: "https://github.com/palkan/view-layer-benchmarks", class: "underline") { "Faster" }
59-
span {" than traditional Rails ERB"}
57+
span { " than traditional Rails ERB" }
6058
end
6159
end
6260
end

0 commit comments

Comments
 (0)