Skip to content

Commit

Permalink
Merge branch 'master' into schema-sort-types
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen authored Feb 27, 2024
2 parents 3ba4c66 + d3e09c2 commit 6ee616e
Show file tree
Hide file tree
Showing 59 changed files with 635 additions and 493 deletions.
2 changes: 2 additions & 0 deletions .github/probots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enabled:
- cla
103 changes: 103 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: CI

on:
push:
branches: [ master ]
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: Run standardrb
run: bundle exec standardrb --no-fix --format progress
test:
name: "Tests - ${{ matrix.ruby }} | ${{ matrix.gemfile }} | Appraisal: ${{ matrix.appraisal }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
gemfile:
- Gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6.gemfile
- gemfiles/rails_7.gemfile
- gemfiles/rails_5_2_graphiti_rails.gemfile
- gemfiles/rails_6_graphiti_rails.gemfile
- gemfiles/rails_7_graphiti_rails.gemfile
- gemfiles/rails_7_1_graphiti_rails.gemfile
appraisal:
- true
- false
include:
- ruby: ruby-head
gemfile: gemfiles/rails_7_1.gemfile
appraisal: true
- ruby: ruby-head
gemfile: Gemfile
appraisal: false
exclude:
# Skip some extra variants
- gemfile: Gemfile
appraisal: true
- gemfile: gemfiles/rails_5_2.gemfile
appraisal: false
- gemfile: gemfiles/rails_6.gemfile
appraisal: false
- gemfile: gemfiles/rails_7.gemfile
appraisal: false
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_6_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_7_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_7_1_graphiti_rails.gemfile
appraisal: false
# Rails 5 can't run on Ruby 3
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.0
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.0
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.1
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.1
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.2
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.2
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.3
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.3
continue-on-error: ${{ matrix.ruby == 'ruby-head' }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- name: Set up Appraisal
if: matrix.appraisal
run: echo "APPRAISAL_INITIALIZED=true" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
8 changes: 4 additions & 4 deletions .standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ignore:
# There are some false hits when doing repeated
# Class.new blocks in different test cases
- Lint/DuplicateMethods
# This was causing many tests to be harder to read.
# Ongoing discussion with StandardRB team in
# https://github.com/testdouble/standard/issues/94
- Standard/SemanticBlocks
# We define a lot of test-specific classes within our test blocks
# There's probably a better way to do this, but it's not worth the
# effort right now, so let's just disable for specs
- Lint/ConstantDefinitionInBlock
94 changes: 0 additions & 94 deletions .travis.yml

This file was deleted.

63 changes: 26 additions & 37 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,70 +1,59 @@
appraise "rails-4" do
gem "rails", "~> 4.2"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "database_cleaner"
end

appraise "rails-5_0" do
gem "rails", "~> 5.0"
appraise "rails-5_2" do
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-5_1" do
gem "rails", "~> 5.1"
appraise "rails-5_2-graphiti-rails" do
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-5_2" do
gem "rails", "~> 5.2"
appraise "rails-6" do
gem "rails", "~> 6.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-5_0-graphiti-rails" do
gem "rails", "~> 5.0"
appraise "rails-6-graphiti-rails" do
gem "rails", "~> 6.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-5_1-graphiti-rails" do
gem "rails", "~> 5.1"
appraise "rails-7" do
gem "rails", "~> 7.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
end

appraise "rails-5_2-graphiti-rails" do
gem "rails", "~> 5.2"
appraise "rails-7-graphiti-rails" do
gem "rails", "~> 7.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-6" do
gem "rails", "~> 6.0"
appraise "rails-7-1" do
gem "rails", "~> 7.1"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-6-graphiti-rails" do
gem "rails", "~> 6.0"
appraise "rails-7-1-graphiti-rails" do
gem "rails", "~> 7.1"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source "https://rubygems.org"
gemspec

group :test do
gem "database_cleaner"
gem "pry"
gem "pry-byebug", platform: [:mri]
gem "appraisal"
Expand Down
20 changes: 0 additions & 20 deletions gemfiles/rails_5_1_graphiti_rails.gemfile

This file was deleted.

4 changes: 2 additions & 2 deletions gemfiles/rails_5_2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

source "https://rubygems.org"

gem "rails", "~> 5.2"
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"

group :test do
Expand Down
7 changes: 3 additions & 4 deletions gemfiles/rails_5_2_graphiti_rails.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

source "https://rubygems.org"

gem "rails", "~> 5.2"
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"

group :test do
gem "pry"
Expand Down
3 changes: 1 addition & 2 deletions gemfiles/rails_6_graphiti_rails.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ gem "rails", "~> 6.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"

group :test do
gem "pry"
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_5_1.gemfile → gemfiles/rails_7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

source "https://rubygems.org"

gem "rails", "~> 5.1"
gem "rails", "~> 7.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"

group :test do
Expand Down
Loading

0 comments on commit 6ee616e

Please sign in to comment.