Skip to content

Commit 6d08023

Browse files
committed
Add Github CI for different Ruby versions
1 parent fe7e630 commit 6d08023

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI Test
2+
on: [ push ]
3+
jobs:
4+
build:
5+
name: Ruby ${{ matrix.ruby }}
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- ruby: 3.2
12+
bundler_version: 2.4.4
13+
- ruby: 3.1
14+
bundler_version: 2.4.4
15+
- ruby: 3.0
16+
bundler_version: 2.4.4
17+
env:
18+
CI: 1
19+
BUNDLER_VERSION: ${{ matrix.bundler_version }}
20+
USE_OFFICIAL_GEM_SOURCE: 1
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby }}
26+
- name: Install bundler
27+
run: gem install bundler -v $BUNDLER_VERSION
28+
- name: Install dependencies
29+
run: bundle install
30+
- run: bundle exec rspec

0 commit comments

Comments
 (0)