-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Takuya Noguchi <[email protected]>
- Loading branch information
Showing
3 changed files
with
94 additions
and
23 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,60 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
continue-on-error: ${{ matrix.unsupported }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ['2.7', '3.0'] | ||
unsupported: [false] | ||
include: | ||
- ruby-version: '2.4' | ||
unsupported: true | ||
- ruby-version: '2.5' | ||
unsupported: true | ||
- ruby-version: '2.6' | ||
unsupported: true | ||
- ruby-version: '3.1' | ||
unsupported: true | ||
- ruby-version: head | ||
unsupported: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Remove Gemfile.lock | ||
run: rm -f Gemfile.lock | ||
- name: Set up Ruby | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
continue-on-error: ${{ matrix.unsupported }} # Only for Ruby 2.4 | ||
- name: Run tests | ||
run: bundle exec rake test | ||
continue-on-error: ${{ matrix.unsupported }} | ||
- name: Run man tests | ||
run: bundle exec rake man | ||
continue-on-error: ${{ matrix.unsupported }} # Only for Ruby 2.4 | ||
|
||
rubocop: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: 2.7.6 | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run RuboCop | ||
run: bundle exec rubocop |
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 @@ | ||
# We do not have plan to support | ||
name: JRuby | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: [jruby-9.2.9.0, jruby-head] | ||
continue-on-error: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Remove Gemfile.lock | ||
run: rm -f Gemfile.lock | ||
- name: Set up Ruby | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run tests | ||
run: bundle exec rake test | ||
continue-on-error: true | ||
- name: Run man tests | ||
run: bundle exec rake man | ||
continue-on-error: true |
This file was deleted.
Oops, something went wrong.