Skip to content

Commit 9b4269e

Browse files
authored
Merge pull request #908 from wildmaples/github-actions-maybe
Add test CI flow for various Rubys on Github actions
2 parents 7b7900a + e056ef3 commit 9b4269e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
continue-on-error: ${{ matrix.experimental }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
ruby: [2.7, jruby, jruby-head, truffleruby-head]
13+
experimental: [false]
14+
include:
15+
- ruby: head
16+
experimental: true
17+
- ruby: truffleruby
18+
experimental: true
19+
20+
env:
21+
JAVA_OPTS: '-Xmx1024m'
22+
RUBYOPT: '-w'
23+
JRUBY_OPTS: '--dev'
24+
25+
name: "Tests: Ruby ${{ matrix.ruby }}"
26+
steps:
27+
- name: Clone Repo
28+
uses: actions/checkout@v2
29+
- name: Setup system Ruby ${{ matrix.ruby }}
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34+
- name: Run tests
35+
run: |
36+
gem install bundler --version 1.17.3
37+
echo JAVA_OPTS: $JAVA_OPTS
38+
bundle exec rake ci

0 commit comments

Comments
 (0)