Skip to content

Commit c7f87fb

Browse files
committed
Try adding CI
1 parent 2a44ea1 commit c7f87fb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Ruby CI
2+
3+
on:
4+
push:
5+
branches: [$default-branch]
6+
pull_request:
7+
branches: [$default-branch]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ruby-version: [2.7.x, 2.6.x, 2.5.x, 2.4.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Ruby ${{ matrix.ruby-version }}
21+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
22+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
23+
# uses: ruby/setup-ruby@v1
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby-version }}
27+
bundler-cache: true
28+
- name: Install dependencies
29+
run: bundle install
30+
- name: Run tests
31+
run: bundle exec rake

0 commit comments

Comments
 (0)