From bee43aaceaf5658854d39086b62392fa79973bd5 Mon Sep 17 00:00:00 2001 From: Anton Sokolov Date: Sat, 22 Nov 2025 04:03:26 +0700 Subject: [PATCH] Update CI workflows with Ruby preview versions and dependency upgrades - Added Ruby 3.5.0-preview1 and 4.0.0-preview2 to the CI matrix, excluding incompatible Rails versions for each. - Upgraded `actions/checkout` from v4 to v6 in all workflows for better performance and new features. - Updated `github/codeql-action/upload-sarif` to v4 in the RuboCop workflow for improved functionality. --- .github/workflows/rubocop.yml | 4 ++-- .github/workflows/test.yml | 23 ++++++++++++++++++++++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index dfde865..db53ae1 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 @@ -42,6 +42,6 @@ jobs: " - name: Upload Sarif output - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@v4 with: sarif_file: rubocop.sarif diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 029c35d..c8d8f2e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,9 +33,30 @@ jobs: - "3.2" - "3.3" - "3.4" + - "3.5.0-preview1" + - "4.0.0-preview2" + exclude: + # Ruby 3.5.0 Preview 1 + - gemfile: rails_5.1 + ruby-version: "3.5.0-preview1" + - gemfile: rails_5.2 + ruby-version: "3.5.0-preview1" + - gemfile: rails_6.0 + ruby-version: "3.5.0-preview1" + - gemfile: rails_6.1 + ruby-version: "3.5.0-preview1" + # Ruby 4.0.0 Preview 2 + - gemfile: rails_5.1 + ruby-version: "4.0.0-preview2" + - gemfile: rails_5.2 + ruby-version: "4.0.0-preview2" + - gemfile: rails_6.0 + ruby-version: "4.0.0-preview2" + - gemfile: rails_6.1 + ruby-version: "4.0.0-preview2" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1