Skip to content

Commit

Permalink
* Update ruby & rails & action versions in CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Aug 29, 2024
1 parent 271ef0f commit a28ae93
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,35 @@ jobs:
os:
- ubuntu
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
- 3.3
- jruby
gemfile:
- gemfiles/rails_6_0.gemfile
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
- gemfiles/rails_7_2.gemfile
allow_failures:
- false
include:
- os: ubuntu
ruby: ruby-head
gemfile: gemfiles/rails_7_0.gemfile
gemfile: gemfiles/rails_7_2.gemfile
allow_failures: true
- os: ubuntu
ruby: jruby-head
gemfile: gemfiles/rails_7_0.gemfile
gemfile: gemfiles/rails_7_2.gemfile
allow_failures: true
exclude:
- os: ubuntu
ruby: jruby
# Rails 7 requires Ruby 2.7
# `jruby-9.3.7.0` only supports 2.6.x
gemfile: gemfiles/rails_7_0.gemfile
allow_failures: false
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
12 changes: 8 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@

appraise "rails_6_0" do
gem "rails", "~> 6.0.0"
end

appraise "rails_6_1" do
gem "rails", "~> 6.1.0"
end

appraise "rails_7_0" do
gem "rails", "~> 7.0.0"
end

appraise "rails_7_1" do
gem "rails", "~> 7.1.0"
end

appraise "rails_7_2" do
gem "rails", "~> 7.2.0"
end
2 changes: 1 addition & 1 deletion gemfiles/rails_6_0.gemfile → gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ source "https://rubygems.org"
gem "rcov", platforms: :mri_18, group: [:development, :test]
gem "simplecov", platforms: [:jruby, :mri_19, :ruby_19, :mri_20, :rbx], group: [:development, :test], require: false
gem "jruby-openssl", platform: :jruby
gem "rails", "~> 6.0.0"
gem "rails", "~> 7.1.0"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/rails_7_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rcov", platforms: :mri_18, group: [:development, :test]
gem "simplecov", platforms: [:jruby, :mri_19, :ruby_19, :mri_20, :rbx], group: [:development, :test], require: false
gem "jruby-openssl", platform: :jruby
gem "rails", "~> 7.2.0"

gemspec path: "../"

0 comments on commit a28ae93

Please sign in to comment.