Skip to content

Commit 40b8687

Browse files
authored
run tests against ruby version matrix in github action (#3)
1 parent 1788e36 commit 40b8687

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ruby-version: ['3.2', '3.1', '3.0', '2.7']
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Ruby ${{ matrix.ruby-version }}
18+
uses: ruby/[email protected]
19+
with:
20+
ruby-version: ${{ matrix.ruby-version }}
21+
- name: Install dependencies
22+
run: bundle install
23+
- name: Run tests
24+
run: bundle exec rspec

0 commit comments

Comments
 (0)