-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable GitHub Actions with updated Rubocop and Danger
- Loading branch information
Showing
9 changed files
with
387 additions
and
97 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,19 @@ | ||
--- | ||
name: Danger | ||
on: | ||
pull_request: | ||
ypes: [opened, reopened, edited, synchronize] | ||
jobs: | ||
danger: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
bundler-cache: true | ||
- name: Run Danger | ||
run: bundle exec danger | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,80 @@ | ||
--- | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
jobs: | ||
lint: | ||
name: RuboCop | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- name: Run RuboCop | ||
run: bundle exec rubocop | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
gemfile: | ||
- Gemfile | ||
- gemfiles/rack1.gemfile | ||
- gemfiles/rack2.gemfile | ||
- gemfiles/rack_edge.gemfile | ||
- gemfiles/rails_edge.gemfile | ||
- gemfiles/rails_5.gemfile | ||
- gemfiles/rails_6.gemfile | ||
experimental: [false] | ||
include: | ||
- ruby: 2.7 | ||
gemfile: 'gemfiles/multi_json.gemfile' | ||
experimental: false | ||
- ruby: 2.7 | ||
gemfile: 'gemfiles/multi_xml.gemfile' | ||
experimental: false | ||
- ruby: "ruby-head" | ||
experimental: true | ||
- ruby: "truffleruby-head" | ||
experimental: true | ||
- ruby: "jruby-head" | ||
experimental: true | ||
runs-on: ubuntu-20.04 | ||
continue-on-error: ${{ matrix.experimental }} | ||
env: | ||
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run tests | ||
run: bundle exec rake spec | ||
|
||
- name: Run tests (spec/integration/eager_load) | ||
if: ${{ matrix.gemfile == 'Gemfile' }} | ||
run: bundle exec rspec spec/integration/eager_load | ||
|
||
- name: Run tests (spec/integration/multi_json) | ||
if: ${{ matrix.gemfile == 'gemfiles/multi_json.gemfile' }} | ||
run: bundle exec rspec spec/integration/multi_json | ||
|
||
- name: Run tests (spec/integration/multi_xml) | ||
if: ${{ matrix.gemfile == 'gemfiles/multi_xml.gemfile' }} | ||
run: bundle exec rspec spec/integration/multi_xml |
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,6 +1,7 @@ | ||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.4 | ||
SuggestExtensions: false | ||
Exclude: | ||
- vendor/**/* | ||
- bin/**/* | ||
|
Oops, something went wrong.