forked from Casecommons/pg_search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
49 changed files
with
1,021 additions
and
969 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,80 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- github-actions | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "0 18 * * 6" # Saturdays at 12pm CST | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
CI: true | ||
PGHOST: 127.0.0.1 | ||
PGUSER: postgres | ||
PGPASS: postgres | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ['3.0', '3.1', '3.2', '3.3'] | ||
active-record-version-env: | ||
- ACTIVE_RECORD_VERSION="~> 6.1.0" | ||
- ACTIVE_RECORD_VERSION="~> 7.0.0" | ||
- ACTIVE_RECORD_VERSION="~> 7.1.0" | ||
- ACTIVE_RECORD_VERSION="~> 7.2.0" | ||
allow-failure: [false] | ||
exclude: | ||
- ruby-version: '3.0' | ||
active-record-version-env: ACTIVE_RECORD_VERSION="~> 7.2.0" | ||
include: | ||
- ruby-version: '3.3' | ||
active-record-version-env: ACTIVE_RECORD_BRANCH="main" | ||
allow-failure: true | ||
- ruby-version: '3.3' | ||
active-record-version-env: ACTIVE_RECORD_BRANCH="7-2-stable" | ||
allow-failure: true | ||
- ruby-version: '3.3' | ||
active-record-version-env: ACTIVE_RECORD_BRANCH="7-1-stable" | ||
allow-failure: true | ||
- ruby-version: '3.3' | ||
active-record-version-env: ACTIVE_RECORD_BRANCH="7-0-stable" | ||
allow-failure: true | ||
- ruby-version: '3.3' | ||
active-record-version-env: ACTIVE_RECORD_BRANCH="6-1-stable" | ||
allow-failure: true | ||
continue-on-error: ${{ matrix.allow-failure }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Set up test database | ||
env: | ||
PGPASSWORD: postgres | ||
run: createdb pg_search_test | ||
- name: Update bundle | ||
run: ${{ matrix.active-record-version-env }} bundle update | ||
- name: Run tests | ||
run: ${{ matrix.active-record-version-env }} bundle exec rake |
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,6 @@ | ||
ruby_version: 3.0 | ||
|
||
plugins: | ||
- standard-performance | ||
- standard-rails: | ||
target_rails_version: 6.1 |
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
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,15 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem 'pg', '>= 0.21.0', platform: :ruby | ||
gem "pg", ">= 0.21.0", platform: :ruby | ||
gem "activerecord-jdbcpostgresql-adapter", ">= 1.3.1", platform: :jruby | ||
|
||
if ENV['ACTIVE_RECORD_BRANCH'] | ||
gem 'activerecord', git: 'https://github.com/rails/rails.git', branch: ENV['ACTIVE_RECORD_BRANCH'] | ||
gem 'arel', git: 'https://github.com/rails/arel.git' if ENV['ACTIVE_RECORD_BRANCH'] == 'master' | ||
if ENV["ACTIVE_RECORD_BRANCH"] | ||
gem "activerecord", git: "https://github.com/rails/rails.git", branch: ENV.fetch("ACTIVE_RECORD_BRANCH", nil) | ||
gem "arel", git: "https://github.com/rails/arel.git" if ENV.fetch("ACTIVE_RECORD_BRANCH", nil) == "master" | ||
end | ||
|
||
gem 'activerecord', ENV['ACTIVE_RECORD_VERSION'] if ENV['ACTIVE_RECORD_VERSION'] | ||
gem "activerecord", ENV.fetch("ACTIVE_RECORD_VERSION", nil) if ENV["ACTIVE_RECORD_VERSION"] # standard:disable Bundler/DuplicatedGem | ||
|
||
gem "debug" | ||
gem "irb" | ||
gem "rake" | ||
gem "rspec" | ||
gem "simplecov" | ||
gem "simplecov-lcov" | ||
gem "standard", require: false | ||
gem "standard-rails", require: false | ||
gem "standard-rspec", require: false | ||
gem "undercover" | ||
gem "warning" | ||
gem "with_model" |
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
Oops, something went wrong.