-
Notifications
You must be signed in to change notification settings - Fork 419
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 #908 from wildmaples/github-actions-maybe
Add test CI flow for various Rubys on Github actions
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [2.7, jruby, jruby-head, truffleruby-head] | ||
experimental: [false] | ||
include: | ||
- ruby: head | ||
experimental: true | ||
- ruby: truffleruby | ||
experimental: true | ||
|
||
env: | ||
JAVA_OPTS: '-Xmx1024m' | ||
RUBYOPT: '-w' | ||
JRUBY_OPTS: '--dev' | ||
|
||
name: "Tests: Ruby ${{ matrix.ruby }}" | ||
steps: | ||
- name: Clone Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup system Ruby ${{ matrix.ruby }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run tests | ||
run: | | ||
gem install bundler --version 1.17.3 | ||
echo JAVA_OPTS: $JAVA_OPTS | ||
bundle exec rake ci |