Skip to content

Commit 90ef7dd

Browse files
authored
Merge pull request #786 from bugsnag/fix-ci
Fix CI
2 parents e5afde5 + 3828228 commit 90ef7dd

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/test-package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on: [push, pull_request]
44

55
jobs:
66
specs:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
88

99
strategy:
1010
fail-fast: false
1111
matrix:
12-
ruby-version: ['2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
12+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
1313
optional-groups: ['test sidekiq']
1414
include:
1515
- ruby-version: '1.9'
@@ -18,6 +18,9 @@ jobs:
1818
optional-groups: 'test'
1919
- ruby-version: '2.1'
2020
optional-groups: 'test'
21+
- ruby-version: '2.2'
22+
optional-groups: 'test sidekiq'
23+
os: 'ubuntu-20.04'
2124
- ruby-version: 'jruby'
2225
optional-groups: 'test'
2326

features/fixtures/rails3/app/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ gem 'bugsnag', path: '/bugsnag'
1515
gem 'rack-cache', '~> 1.9.0'
1616

1717
gem "warden"
18+
19+
# Install a compatible Loofah version on Ruby <2.5
20+
gem 'loofah', '2.20.0' if RUBY_VERSION < '2.5'

features/fixtures/rails4/app/Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ gem 'devise'
4343

4444
gem "mongoid", '~> 5.4.0'
4545

46-
gem "nokogiri", "1.6.8"
46+
gem "nokogiri", "1.6.8"
47+
48+
# Install a compatible Loofah version
49+
gem 'loofah', '2.20.0'

features/fixtures/rails5/app/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ gem "clearance", ruby_version < Gem::Version.new('2.3.0') ? '1.16.1' : '~> 1.16
5050
gem "mongoid"
5151

5252
gem "nokogiri", "1.6.8"
53+
54+
# Install a compatible Loofah version
55+
gem 'loofah', '2.20.0'

0 commit comments

Comments
 (0)