forked from rpush/rpush
-
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 #11 from Codefied/JS-7166-sync-rpush
JS-7166 sync rpush
- Loading branch information
Showing
185 changed files
with
3,995 additions
and
2,143 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,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Write code '...' | ||
2. Run '....' | ||
3. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Logs and other output** | ||
If applicable, add logs, stack traces etc. to help explain your problem. | ||
|
||
**System configuration (please complete the following information):** | ||
- OS: [e.g. macOS] | ||
- OS version: [e.g. 10.14.4] | ||
- Ruby version: [e.g. 2.6.3] | ||
- Rails version: [e.g. 6.0.0] | ||
- Rpush version: [e.g. 4.1.2] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,107 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: RPush Test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_HOST: localhost | ||
POSTGRES_PORT: 5432 | ||
POSTGRES_DB: rpush_test | ||
PGPASSWORD: postgres # https://www.postgresql.org/docs/13/libpq-envars.html | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:13 | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps tcp port 5432 on service container to the host | ||
- 5432:5432 | ||
|
||
redis: | ||
image: redis | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps port 6379 on service container to the host | ||
- 6379:6379 | ||
|
||
strategy: | ||
matrix: | ||
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0'] | ||
|
||
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1'] | ||
|
||
client: ['active_record', 'redis'] | ||
|
||
exclude: | ||
# Rails 5.2 requires Ruby < 3.0 | ||
# https://github.com/rails/rails/issues/40938 | ||
- ruby: '3.0' | ||
gemfile: 'rails_5.2' | ||
- ruby: '3.1' | ||
gemfile: 'rails_5.2' | ||
# Rails >= 6 requires Ruby >= 2.5 | ||
- ruby: '2.4' | ||
gemfile: 'rails_6.0' | ||
- ruby: '2.4' | ||
gemfile: 'rails_6.1' | ||
# Rails >= 7 requires Ruby >= 2.7 | ||
- ruby: '2.4' | ||
gemfile: 'rails_7.0' | ||
- ruby: '2.5' | ||
gemfile: 'rails_7.0' | ||
- ruby: '2.6' | ||
gemfile: 'rails_7.0' | ||
|
||
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | ||
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
- name: Create PostgreSQL database | ||
run: | | ||
createdb \ | ||
--host=$POSTGRES_HOST \ | ||
--port=$POSTGRES_PORT \ | ||
--username=$POSTGRES_USER \ | ||
$POSTGRES_DB | ||
- name: Run tests | ||
run: bundle exec rake | ||
env: | ||
# The hostname used to communicate with the PostgreSQL service container | ||
POSTGRES_HOST: localhost | ||
# The default PostgreSQL port | ||
POSTGRES_PORT: 5432 | ||
CLIENT: ${{ matrix.client }} |
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,31 +1,49 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: rubocop-performance | ||
|
||
AllCops: | ||
Exclude: | ||
- gemfiles/vendor/bundle/**/* # This dir only shows up on Travis | ||
- lib/generators/**/* | ||
- vendor/bundle/**/* | ||
NewCops: enable | ||
TargetRubyVersion: 2.4 | ||
|
||
LineLength: | ||
Layout/LineLength: | ||
Enabled: false | ||
|
||
StringLiterals: | ||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Documentation: | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
MethodLength: | ||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
ClassLength: | ||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
CyclomaticComplexity: | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Style/HashEachMethods: | ||
Enabled: true | ||
|
||
Style/HashTransformKeys: | ||
Enabled: true | ||
|
||
Style/HashTransformValues: | ||
Enabled: true | ||
|
||
Style/SignalException: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Max: 30 | ||
|
||
Style/StderrPuts: | ||
Enabled: false | ||
|
||
Naming/RescuedExceptionsVariableName: | ||
Enabled: false |
Oops, something went wrong.