-
Notifications
You must be signed in to change notification settings - Fork 43
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 #38 from bdurand/actions-standardrb
Actions + standardrb
- Loading branch information
Showing
70 changed files
with
721 additions
and
497 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,12 @@ | ||
# Dependabot update strategy | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
allow: | ||
# Automatically keep all runtime dependencies updated | ||
- dependency-name: "*" | ||
dependency-type: "production" | ||
versioning-strategy: lockfile-only |
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,62 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- actions-* | ||
tags: | ||
- v* | ||
pull_request: | ||
env: | ||
BUNDLE_CLEAN: "true" | ||
BUNDLE_PATH: vendor/bundle | ||
BUNDLE_JOBS: 3 | ||
BUNDLE_RETRY: 3 | ||
jobs: | ||
specs: | ||
name: ${{ matrix.job }} ruby-${{ matrix.ruby }} ${{ matrix.appraisal }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, "jruby" ] | ||
job: [ rspec ] | ||
include: | ||
- ruby: 2.3 | ||
appraisal: activesupport_4 | ||
job: rspec | ||
- ruby: 2.5 | ||
appraisal: activesupport_5 | ||
job: rspec | ||
- ruby: 2.6 | ||
appraisal: activesupport | ||
job: rspec | ||
- ruby: 2.6 | ||
appraisal: logger | ||
job: rspec | ||
- ruby: 2.7 | ||
job: standardrb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- name: remove standardrb | ||
if: matrix.appraisal == 'activesupport_4' | ||
run: sed -i 's/gem "standard"/# gem "standard"/' Gemfile | ||
- name: inject appraisal ${{ matrix.appraisal }} | ||
if: matrix.appraisal && matrix.appraisal != '' | ||
run: | # inject a specific appraisal Gemfile | ||
bundle update | ||
bundle exec appraisal generate | ||
bundle config set gemfile "gemfiles/${{ matrix.appraisal }}.gemfile" | ||
- name: install dependencies | ||
run: bundle install | ||
- name: specs | ||
if: matrix.job == 'rspec' | ||
run: bundle exec rake spec | ||
- name: standardrb | ||
if: matrix.job == 'standardrb' | ||
run: bundle exec standardrb |
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,13 @@ | ||
# I really just have issues with the automatic "semantic blocks" | ||
|
||
ruby_version: 2.3 | ||
|
||
format: progress | ||
|
||
ignore: | ||
- '**/*': | ||
- Standard/SemanticBlocks | ||
- Performance/RegexpMatch | ||
- 'spec/**/*': | ||
- Lint/UselessAssignment | ||
- Lint/Void |
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,2 +1,19 @@ | ||
source 'https://rubygems.org' | ||
gemspec | ||
source "https://rubygems.org" | ||
|
||
group :runtime do | ||
gemspec | ||
end | ||
|
||
group :development, :test do | ||
gem "rake" | ||
gem "rspec", "~> 3.9" | ||
gem "timecop" | ||
gem "appraisal" | ||
|
||
# Lock standard to a particular version, esp. cause it's still 0.x.x according to Semver | ||
gem "standard", "0.5.2", require: false | ||
end | ||
|
||
group :doc do | ||
gem "yard" | ||
end |
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 +1 @@ | ||
1.2.7 | ||
1.2.8 |
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
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
Oops, something went wrong.