Skip to content

Commit

Permalink
Merge branch 'master' of github.com:grosser/parallel_tests into repor…
Browse files Browse the repository at this point in the history
…ting3
  • Loading branch information
joshwestbrook committed Jan 26, 2024
2 parents 413c036 + 8129c4c commit 7d0fc9b
Show file tree
Hide file tree
Showing 338 changed files with 5,091 additions and 2,098 deletions.
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Thank you for your contribution!

## Checklist
- [ ] Feature branch is up-to-date with `master` (if not - rebase it).
- [ ] Added tests.
- [ ] Added an entry to the [Changelog](../blob/master/CHANGELOG.md) if the new
code introduces user-observable changes.
- [ ] Update Readme.md when cli options are changed
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test

on:
push:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # run all tests so we see which gem/ruby combinations break
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', head, jruby-head]
os: [ubuntu-latest, windows-latest]
task: [spec]
include:
- ruby: '2.7' # lowest supported version, same as gemspec and .rubocop.yml
os: ubuntu-latest
task: rubocop
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rake ${{ matrix.task }}
# allow ruby/jruby-head to fail since they are moving targets
# TODO: this will always show green, fix once https://github.com/actions/toolkit/issues/399 is resolved
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
run: bundle exec rake ${{ matrix.task }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
tmp
.bundle
**/vendor/bundle
/.idea
137 changes: 137 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
SuggestExtensions: false
Exclude:
- '**/vendor/bundle/**/*'
- 'spec/fixtures/*/db/schema.rb'

Style/FrozenStringLiteralComment:
Enabled: false

Style/StringLiterals:
Enabled: false

Style/StringLiteralsInInterpolation:
Enabled: false

Lint/AmbiguousRegexpLiteral:
Enabled: false

Bundler/OrderedGems:
Enabled: false

Metrics:
Enabled: false

Style/Documentation:
Enabled: false

Layout/EmptyLineAfterMagicComment:
Enabled: false

Layout/EndAlignment:
EnforcedStyleAlignWith: variable

Layout/MultilineOperationIndentation:
Enabled: false

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Style/NumericPredicate:
EnforcedStyle: comparison

Layout/EmptyLineAfterGuardClause:
Enabled: false

Layout/FirstHashElementLineBreak:
Enabled: true # Opt-in

# Opt-in
Layout/FirstMethodArgumentLineBreak:
Enabled: true # Opt-in

Layout/FirstMethodParameterLineBreak:
Enabled: true # Opt-in

# https://github.com/rubocop-hq/rubocop/issues/5891
Style/SpecialGlobalVars:
Enabled: false

Style/GlobalStdStream:
Enabled: false

Style/WordArray:
EnforcedStyle: brackets

Style/SymbolArray:
EnforcedStyle: brackets

Style/DoubleNegation:
Enabled: false

Style/NumericLiterals:
Enabled: false

Layout/LineLength:
Enabled: false
Max: 120

Style/RedundantConstantBase:
Enabled: false

Style/RegexpLiteral:
Enabled: false

Style/Lambda:
EnforcedStyle: literal

Style/IfUnlessModifier:
Enabled: false

Style/FormatString:
Enabled: false

Naming/VariableNumber:
Enabled: false

Naming/MethodParameterName:
Enabled: false

Style/GuardClause:
Enabled: false

Lint/AssignmentInCondition:
Enabled: false

Style/Next:
Enabled: false

Naming/HeredocDelimiterNaming:
Enabled: false

Style/Semicolon:
Enabled: false

Lint/InterpolationCheck:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/TrivialAccessors:
Enabled: false

Style/ClassVars:
Enabled: false

Style/CaseEquality:
Enabled: false

Lint/EmptyClass:
Enabled: false

# ENV.fetch('FOO', nil) is the same as ENV['FOO']
Style/FetchEnvVar:
Enabled: false
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 7d0fc9b

Please sign in to comment.