Skip to content

Commit e056ef3

Browse files
committed
Add CI flow for tests on Github actions
Travis CI has been down for a while now and we'd like to switch to Github Actions. This change introduces a new CI build on Github Actions that runs tests on Ruby implementations and also mark some Ruby failing implementations as experimental so the build still passes. It does not contain all the requirements from the previous Travis CI yet, but it's a good start.
1 parent 7b7900a commit e056ef3

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)