forked from citusdata/activerecord-multi-tenant
-
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 pull request #5 from citusdata/master
Master sync
- Loading branch information
Showing
126 changed files
with
15,959 additions
and
2,217 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Active Record Multi-Tenant Tests | ||
|
||
env: | ||
CI: true | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
|
||
jobs: | ||
|
||
static-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
bundler-cache: true | ||
- uses: actions/checkout@v3 | ||
- name: Rubocop static code analysis | ||
run: | | ||
gem install rubocop | ||
rubocop | ||
doc_checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- uses: actions/checkout@v3 | ||
- name: Install python dependencies | ||
run: | | ||
pip install -r docs/requirements.txt | ||
- name: Documentation Checks | ||
run: | | ||
cd docs | ||
sphinx-build -W -b html source builds | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- '3.0' | ||
- '3.1' | ||
- '3.2' | ||
appraisal: | ||
- rails-6.0 | ||
- rails-6.1 | ||
- rails-7.0 | ||
- rails-7.1 | ||
- active-record-6.0 | ||
- active-record-6.1 | ||
- active-record-7.0 | ||
- active-record-7.1 | ||
citus_version: | ||
- '10' | ||
- '11' | ||
- '12' | ||
|
||
name: Ruby ${{ matrix.ruby }}/${{ matrix.gemfile }} / Citus ${{ matrix.citus_version }} | ||
env: | ||
APPRAISAL: ${{ matrix.appraisal }} | ||
CITUS_VERSION: ${{ matrix.citus_version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Start Citus Database environment | ||
run: docker-compose up -d | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Execute tests | ||
run: bundle exec rake spec | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.11" | ||
|
||
# Build from the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Explicitly set the version of Python and its requirements | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
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 @@ | ||
--force-color |
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,59 @@ | ||
# This is an example RuboCop configuration file with some commonly used options. | ||
|
||
# Run RuboCop on all Ruby files, except those in `vendor` and `node_modules` directories | ||
AllCops: | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'node_modules/**/*' | ||
- 'Vagrantfile' | ||
TargetRubyVersion: 3.0 | ||
SuggestExtensions: false | ||
NewCops: enable | ||
|
||
Gemspec/DevelopmentDependencies: | ||
Enabled: false | ||
|
||
Lint/ConstantDefinitionInBlock: | ||
Enabled: false | ||
|
||
Lint/EmptyBlock: | ||
Enabled: false | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Exclude: | ||
- '**/*.rb' | ||
Enabled: false | ||
|
||
Style/DocumentDynamicEvalDefinition: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Max: 650 | ||
|
||
Metrics/MethodLength: | ||
Max: 150 | ||
|
||
Metrics/ClassLength: | ||
Max: 200 | ||
|
||
Metrics/ModuleLength: | ||
Max: 200 | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/BlockNesting: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- 'lib/activerecord-multi-tenant.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
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,5 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'appraisal' | ||
gem 'rubocop', require: false, group: 'test' | ||
gem 'simplecov' | ||
gem 'simplecov-cobertura' |
Oops, something went wrong.