-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Closes #202 Signed-off-by: Peter Boling <peter.boling@gmail.com>
- Loading branch information
Showing
8 changed files
with
147 additions
and
25 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,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "04:30" | ||
open-pull-requests-limit: 10 |
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,34 @@ | ||
name: Code Style Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*-maintenance' | ||
- '*-dev' | ||
tags: | ||
- '!*' # Do not execute on tags | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
rubocop: | ||
name: Rubocop | ||
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.6 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby & Bundle | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run Rubocop | ||
run: bundle exec rubocop -DESP |
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,57 @@ | ||
name: Supported Rubies | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*-maintenance' | ||
- '*-dev' | ||
tags: | ||
- '!*' # Do not execute on tags | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }} | ||
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- truffleruby-head | ||
- ruby-head | ||
- 3.0 | ||
- 2.7 | ||
- 2.6 | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }} | ||
steps: | ||
- uses: amancevice/setup-code-climate@v0 | ||
name: CodeClimate Install | ||
if: matrix.ruby == '2.6' && github.event_name != 'pull_request' | ||
with: | ||
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby & Bundle | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: CodeClimate Pre-build Notification | ||
run: cc-test-reporter before-build | ||
if: matrix.ruby == '2.6' && github.event_name != 'pull_request' | ||
continue-on-error: ${{ matrix.allow_failures != 'false' }} | ||
- name: Run tests | ||
run: bundle exec rake test | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
flags: unittests | ||
name: codecov-upload | ||
fail_ci_if_error: true | ||
- name: CodeClimate Post-build Notification | ||
run: cc-test-reporter after-build | ||
if: matrix.ruby == '2.6' && github.event_name != 'pull_request' && always() | ||
continue-on-error: ${{ matrix.allow_failures != 'false' }} |
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,37 @@ | ||
name: Unsupported Rubies | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*-maintenance' | ||
- '*-dev' | ||
tags: | ||
- '!*' # Do not execute on tags | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }} | ||
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.5 | ||
- 2.4 | ||
- 2.3 | ||
runs-on: ubuntu-18.04 | ||
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby & Bundle | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rake test |
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,5 @@ | ||
# frozen_string_literal: true | ||
|
||
SimpleCov.start do | ||
add_filter "/spec/" | ||
end |
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