Skip to content

Commit 987eb9b

Browse files
author
haruyama.makoto
committed
Merge branch 'master' into update-zstd-for-v1.4.9
2 parents b54b264 + 428bbae commit 987eb9b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on: [push, pull_request]
11+
12+
jobs:
13+
test:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
ruby-version: ['2.6', '2.7', '3.0']
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Ruby
23+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
25+
# uses: ruby/setup-ruby@v1
26+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
27+
with:
28+
ruby-version: ${{ matrix.ruby-version }}
29+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30+
- name: Install dependencies
31+
run: bundle install
32+
- name: Run tests
33+
run: bundle exec rspec

0 commit comments

Comments
 (0)