-
Notifications
You must be signed in to change notification settings - Fork 9
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 #97 from gocardless/joesouthan-ghactions
Remove support for Ruby =< 3.0 and Rails < 7
- Loading branch information
Showing
11 changed files
with
93 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- run: bundle exec rubocop --extra-details --display-style-guide --parallel --force-exclusion | ||
|
||
tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ["3.1", "3.2", "3.3"] | ||
activerecord-version: | ||
- "7.0.8" | ||
- "7.1.3.4" | ||
- "7.2.0" | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:14 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: safer_migrations_test | ||
POSTGRES_PASSWORD: safer_migrations | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 10 | ||
env: | ||
DATABASE_URL: postgres://postgres:safer_migrations@localhost/safer_migrations_test | ||
DATABASE_DEPENDENCY_PORT: "5432" | ||
ACTIVERECORD_VERSION: "${{ matrix.activerecord-version }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: "${{ matrix.ruby-version }}" | ||
- name: Run specs | ||
run: | | ||
bundle exec rspec --profile --format progress |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
inherit_gem: | ||
gc_ruboconfig: rubocop.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
TargetRubyVersion: 3.2 | ||
NewCops: enable | ||
|
||
Gemspec/RequiredRubyVersion: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- lib/activerecord-safer_migrations.rb | ||
|
||
Style/GlobalVars: | ||
Exclude: | ||
- "spec/active_record/safer_migrations/migration_spec.rb" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.7.1 | ||
3.3.4 |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module ActiveRecord | ||
module SaferMigrations | ||
VERSION = "3.0.0" | ||
VERSION = "4.0.0" | ||
end | ||
end |
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