Skip to content

Commit 59ef859

Browse files
authored
Set up CI via GitHub Actions (#183)
1 parent 3675a87 commit 59ef859

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
ruby: ["2.3", "2.4", "2.5", "2.6", "2.7"]
12+
13+
runs-on: ${{matrix.os}}
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{matrix.ruby}}
22+
23+
- uses: actions/cache@v2
24+
with:
25+
path: vendor/bundle
26+
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('Gemfile') }}
27+
restore-keys: |
28+
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
29+
30+
- name: Install dependencies
31+
run: bundle install --path vendor/bundle --jobs 4
32+
33+
- name: Run tests
34+
run: bundle exec rake

0 commit comments

Comments
 (0)