From 3545d1b16d067dc6cb75c58ad0e6e178e2d4e562 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Mon, 12 May 2025 22:24:39 +0000 Subject: [PATCH 1/4] Adding bin/rails to verify components action --- .github/workflows/verify_components.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify_components.yml b/.github/workflows/verify_components.yml index 19933439..53e94a1f 100644 --- a/.github/workflows/verify_components.yml +++ b/.github/workflows/verify_components.yml @@ -1,6 +1,12 @@ name: Verify components on: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review push: branches: "main" @@ -12,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - name: Build - run: rails g ruby_ui:component:all --force true + run: bin/rails g ruby_ui:component:all --force true - uses: CatChen/check-git-status-action@v1 with: From 82669ed7fca07d8b1844afe258c959da16b3489e Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Mon, 12 May 2025 22:26:34 +0000 Subject: [PATCH 2/4] adding all the steps to the verify components action --- .github/workflows/verify_components.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify_components.yml b/.github/workflows/verify_components.yml index 53e94a1f..edcb9159 100644 --- a/.github/workflows/verify_components.yml +++ b/.github/workflows/verify_components.yml @@ -15,7 +15,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + run_install: false + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: ".node-version" + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install - name: Build run: bin/rails g ruby_ui:component:all --force true From b0a26a427596e2bb77efb1d00648928cdc8ec71f Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Mon, 12 May 2025 22:28:54 +0000 Subject: [PATCH 3/4] Update ruby_ui version --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 114e6434..87bf1267 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,7 +14,7 @@ GIT GIT remote: https://github.com/ruby-ui/ruby_ui.git - revision: f5a275f191c32bd50d8ab2876a32586cf9435866 + revision: 1a21bdb6fd38d2bd08e684a82b71e1637a727597 branch: main specs: ruby_ui (1.0.1) From 860ba627206aebccd39e65379735010ef377448f Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Mon, 12 May 2025 22:32:06 +0000 Subject: [PATCH 4/4] remove pull_request --- .github/workflows/verify_components.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/verify_components.yml b/.github/workflows/verify_components.yml index edcb9159..9b24bc51 100644 --- a/.github/workflows/verify_components.yml +++ b/.github/workflows/verify_components.yml @@ -1,12 +1,6 @@ name: Verify components on: - pull_request: - types: - - opened - - reopened - - synchronize - - ready_for_review push: branches: "main"