Skip to content

Commit

Permalink
Merge pull request #908 from wildmaples/github-actions-maybe
Browse files Browse the repository at this point in the history
Add test CI flow for various Rubys on Github actions
  • Loading branch information
chrisseaton authored May 6, 2021
2 parents 7b7900a + e056ef3 commit 9b4269e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 9b4269e

Please sign in to comment.