Skip to content

Commit 2b4abfc

Browse files
committed
Add Github Action
1 parent a0d528f commit 2b4abfc

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

‎.github/workflows/ruby.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test Suite
2+
3+
# Run against all commits and pull requests.
4+
on: [ push, pull_request ]
5+
6+
jobs:
7+
test_matrix:
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
- macos-latest
15+
ruby:
16+
- 2.1
17+
- 2.2
18+
- 2.3
19+
- 2.4
20+
- 2.5
21+
- 2.6
22+
- 2.7
23+
- 3.0
24+
- head
25+
- jruby
26+
- jruby-head
27+
- truffleruby
28+
- truffleruby-head
29+
30+
runs-on: ${{ matrix.os }}
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Ruby
35+
uses: ruby/setup-ruby@v1.68.0
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
bundler-cache: true
39+
- name: Run tests
40+
run: bundle exec rake spec
41+
42+
finish:
43+
runs-on: ubuntu-latest
44+
needs: [ test_matrix ]
45+
steps:
46+
- name: Wait for status checks
47+
run: echo "All Green!"

0 commit comments

Comments
 (0)