-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1778 from newrelic/ruby-2-deprecation
Remove support for Ruby 2.2 and 2.3
- Loading branch information
Showing
67 changed files
with
380 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: [2.2.10, 3.2.0] | ||
ruby-version: [2.4.10, 3.2.0] | ||
steps: | ||
- name: Configure git | ||
run: 'git config --global init.defaultBranch main' | ||
|
@@ -54,27 +54,27 @@ jobs: | |
key: ${{ matrix.ruby-version }} | ||
map: | | ||
{ | ||
"2.2.10": { | ||
"rails": "norails,rails41,rails32" | ||
"2.4.10": { | ||
"rails": "norails,rails42,rails52" | ||
}, | ||
"3.2.0": { | ||
"rails": "norails,rails61,rails70" | ||
} | ||
} | ||
- if: matrix.ruby-version == '2.2.10' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Prepare mysql dirextory | ||
run: sudo chown -R $USER /usr/local | ||
|
||
- if: matrix.ruby-version == '2.2.10' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Cache mysql55 | ||
id: mysql55-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/mysql55 | ||
key: mysql55-install | ||
|
||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.2.10' | ||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.4.10' | ||
name: Install mysql55 | ||
run: sudo ./test/script/install_mysql55 | ||
|
||
|
@@ -139,7 +139,7 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
mongodb: | ||
image: ${{ contains(fromJson('["2.2.10", "2.3.8", "2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }} | ||
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }} | ||
ports: | ||
- 27017:27017 | ||
mysql: | ||
|
@@ -183,7 +183,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest] | ||
ruby-version: [2.2.10, 3.2.0] | ||
ruby-version: [2.4.10, 3.2.0] | ||
|
||
steps: | ||
- name: Configure git | ||
|
@@ -202,19 +202,19 @@ jobs: | |
ruby-version: ${{ matrix.ruby-version }} | ||
|
||
# This allows the cache in the following step to be able to write files to the directory needed for mysql | ||
- if: matrix.ruby-version == '2.2.10' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Prepare mysql directory | ||
run: sudo chown -R $USER /usr/local | ||
|
||
- if: matrix.ruby-version == '2.2.10' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Cache mysql55 | ||
id: mysql55-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/mysql55 | ||
key: mysql55-install | ||
|
||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.2.10' | ||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.4.10' | ||
name: Install mysql55 | ||
run: sudo ./test/script/install_mysql55 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
- main | ||
- dev | ||
- major-release-9 | ||
|
||
schedule: | ||
- cron: '0 9 * * *' | ||
workflow_dispatch: | ||
|
@@ -38,7 +37,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: [2.2.10, 2.3.8, 2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0] | ||
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0] | ||
|
||
steps: | ||
- name: Configure git | ||
|
@@ -63,12 +62,6 @@ jobs: | |
key: ${{ matrix.ruby-version }} | ||
map: | | ||
{ | ||
"2.2.10": { | ||
"rails": "norails,rails41,rails40,rails32" | ||
}, | ||
"2.3.8": { | ||
"rails": "norails,rails52,rails51,rails42,rails41,rails40,rails32" | ||
}, | ||
"2.4.10": { | ||
"rails": "norails,rails52,rails51,rails42" | ||
}, | ||
|
@@ -92,19 +85,19 @@ jobs: | |
} | ||
} | ||
- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' | ||
- if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' | ||
name: Prepare mysql dirextory | ||
run: sudo chown -R $USER /usr/local | ||
|
||
- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' | ||
- if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10' | ||
name: Cache mysql55 | ||
id: mysql55-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/mysql55 | ||
key: mysql55-install | ||
|
||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10') | ||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10') | ||
name: Install mysql55 | ||
run: sudo ./test/script/install_mysql55 | ||
|
||
|
@@ -161,7 +154,7 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
mongodb: | ||
image: ${{ contains(fromJson('["2.2.10", "2.3.8", "2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }} | ||
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }} | ||
ports: | ||
- 27017:27017 | ||
mysql: | ||
|
@@ -205,7 +198,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest] | ||
ruby-version: [2.2.10, 2.3.8, 2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0] | ||
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0] | ||
steps: | ||
- name: Configure git | ||
run: 'git config --global init.defaultBranch main' | ||
|
@@ -222,19 +215,19 @@ jobs: | |
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
|
||
- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Prepare mysql dirextory | ||
run: sudo chown -R $USER /usr/local | ||
|
||
- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Cache mysql55 | ||
id: mysql55-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/mysql55 | ||
key: mysql55-install | ||
|
||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8') | ||
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.4.10') | ||
name: Install mysql55 | ||
run: sudo ./test/script/install_mysql55 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ includes unreleased work. Please create all new branches off of `dev`. | |
- Fork the repository inside GitHub | ||
- `git clone [email protected]:<gh username>/newrelic-ruby-agent.git` | ||
1. Pick a Ruby version | ||
- Use rbenv, rvm, chruby, asdf, etc. to install any version of Ruby between 2.2 up to the latest stable version | ||
- Use rbenv, rvm, chruby, asdf, etc. to install any version of Ruby between 2.4 up to the latest stable version | ||
1. Install development dependencies | ||
- `bundle install` | ||
1. Check that your env is setup correctly | ||
|
Oops, something went wrong.