Skip to content

Commit d1f348f

Browse files
patch0gregaCopilot
authored
Add Rails 8 testing support (#80)
Co-authored-by: Greg Annandale <greg@raspberrypi.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2732230 commit d1f348f

File tree

5 files changed

+458
-2
lines changed

5 files changed

+458
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
matrix:
1818
# Rails 8.0 depends on Ruby >= 3.2
1919
ruby-version: ['3.1', '3.2', '3.3']
20-
gemfile: [ rails_6.1, rails_7.0, rails_7.1, rails_7.2 ]
20+
gemfile: [ rails_6.1, rails_7.0, rails_7.1, rails_7.2, rails_8.0 ]
21+
exclude:
22+
- ruby-version: '3.1'
23+
gemfile: rails_8.0
2124
env:
2225
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2326
steps:

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.1.6
1+
ruby 3.3.6

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11+
- Rails 8 testing support (#80)
1112

1213
### Fixed
1314
- Reinstated static code analysis checks in CI (#73)

gemfiles/rails_8.0.gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'rails', '~> 8.0.0'
6+
7+
# Specify your gem's dependencies in rpi_auth.gemspec.
8+
if File.dirname(__FILE__).end_with?('gemfiles')
9+
gemspec path: '../'
10+
else
11+
gemspec
12+
end

0 commit comments

Comments
 (0)