-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 #1084 from rubocop/github-actions
Move from CircleCI to GitHub Actions
- Loading branch information
Showing
7 changed files
with
52 additions
and
130 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
confirm_config_and_documentation: | ||
runs-on: ubuntu-latest | ||
name: Confirm config and documentation | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- run: bundle exec rake confirm_config documentation_syntax_check confirm_documentation | ||
|
||
main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
- "3.0" | ||
- jruby | ||
task: | ||
- internal_investigation | ||
- spec | ||
rubocop_version: | ||
- gem | ||
include: | ||
- rubocop_version: edge | ||
ruby: 2.7 | ||
task: internal_investigation | ||
- rubocop_version: edge | ||
ruby: 2.7 | ||
task: spec | ||
name: ${{ matrix.task }}, Ruby ${{ matrix.ruby }} (${{ matrix.rubocop_version }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use latest RuboCop from `master` | ||
run: | | ||
echo "gem 'rubocop', github: 'rubocop-hq/rubocop'" > Gemfile.local | ||
if: matrix.rubocop_version == 'edge' | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "${{ matrix.ruby }}" | ||
bundler-cache: true | ||
- run: bundle exec rake ${{ matrix.task }} |
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,7 +1,3 @@ | ||
# rcov generated | ||
coverage | ||
coverage.data | ||
|
||
# rdoc generated | ||
rdoc | ||
|
||
|
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