From f1d66df3da7742868b2235665d9e7a6a873e5436 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Sat, 10 May 2025 19:36:16 +0000 Subject: [PATCH 1/3] fix ci yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e754075a..c61f222d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,9 +18,9 @@ jobs: uses: actions/checkout@v4 - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true - name: Install pnpm uses: pnpm/action-setup@v4 From 1072676edd96a8d5e4c172d2a6efb4e1747fd111 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Sat, 10 May 2025 19:42:35 +0000 Subject: [PATCH 2/3] Fix standardrb --- app/views/pages/home.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/pages/home.rb b/app/views/pages/home.rb index 68c00902..435b07d8 100644 --- a/app/views/pages/home.rb +++ b/app/views/pages/home.rb @@ -24,13 +24,11 @@ def view_template end end - - div(class: "overflow-hidden") do div(class: "container mx-auto max-w-5xl px-4 flex justify-center my-8") do 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) end - + div(class: "relative z-10 container mx-auto max-w-5xl pt-16 lg:pt-16 py-24 lg:py-32 px-4") do div(class: "grid grid-cols-6 gap-4") do 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 card.content do div(class: "flex flex-col items-center justify-center text-center space-y-4 h-full") do p(class: "text-6xl font-semibold") { "7.7x" } - p do + p do a(href: "https://github.com/palkan/view-layer-benchmarks", class: "underline") { "Faster" } - span {" than traditional Rails ERB"} + span { " than traditional Rails ERB" } end end end From eb44de52afdd2c164ab1bfe4807dea9f1b5cf6f0 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Sat, 10 May 2025 19:43:54 +0000 Subject: [PATCH 3/3] fix ci yml --- .github/workflows/main.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c61f222d..e411107f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,25 +34,16 @@ jobs: cache: 'pnpm' - name: Install dependencies - run: | - # sudo apt-get update - # sudo apt-get install -y -qq libvips - pnpm install + run: pnpm install - name: Lint code for consistent style run: bundle exec standardrb - - name: Build and run dev container task - uses: devcontainers/ci@v0.3 - with: - imageName: ghcr.io/ruby-ui/web-devcontainer - cacheFrom: ghcr.io/ruby-ui/web-devcontainer - push: always - runCmd: | - bundle exec standardrb - bin/rails test:prepare - bin/rails db:test:prepare - bin/rails test + - name: Run tests + run: | + bin/rails test:prepare + bin/rails db:test:prepare + bin/rails test docker-build: if: github.ref == 'refs/heads/main'