Skip to content

Commit b3f05f1

Browse files
authored
Merge pull request #26 from red-data-tools/ci
Add CI workflow. Fix #9.
2 parents 7eaf2e0 + d150d9f commit b3f05f1

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- ubuntu-16.04
17+
- macos-latest
18+
- windows-latest
19+
ruby_version:
20+
- 2.7
21+
- 2.6
22+
- 2.5
23+
- 2.4
24+
25+
steps:
26+
- name: Setup Ruby
27+
if: matrix.ruby_version != 'master-nightly'
28+
uses: eregon/use-ruby-action@master
29+
with:
30+
ruby-version: ${{ matrix.ruby_version }}
31+
32+
- name: Checkout
33+
uses: actions/checkout@v1
34+
with:
35+
fetch-depth: 1
36+
37+
- name: Prepare environment
38+
run: |
39+
gem install bundler
40+
41+
- name: Install requirements
42+
run: |
43+
bundle install --jobs 4 --retry 3
44+
45+
- name: Test
46+
run: |
47+
bundle exec rake

0 commit comments

Comments
 (0)