From a9cc8a3d82e845148862b10bb5e2272055c0f8d7 Mon Sep 17 00:00:00 2001 From: Anton Sokolov Date: Sat, 22 Nov 2025 04:10:57 +0700 Subject: [PATCH] Update workflows to use latest actions and add Ruby 4 preview support **Changes:** - Updated `actions/checkout` to version `v6` across all workflows for improved compatibility. - Upgraded `github/codeql-action/upload-sarif` to version `v4` in `rubocop.yml`. - Added support for `Ruby 4.0.0-preview2` in `test.yml` and excluded incompatible gemfiles. - Maintained exclusions for `Ruby 3.5.0-preview1` to prevent test failures with Rails versions. These updates ensure the workflows use the latest actions and accommodate future Ruby development versions. --- .github/workflows/rubocop.yml | 4 ++-- .github/workflows/test.yml | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 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 3102ce2..c8d8f2e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,9 @@ jobs: - "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 @@ -43,11 +45,18 @@ jobs: ruby-version: "3.5.0-preview1" - gemfile: rails_6.1 ruby-version: "3.5.0-preview1" - - gemfile: rails_7.0 - 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