Skip to content

Commit f61c9d4

Browse files
authored
Add GitHub Actions workflow for running tests
1 parent e7c52fa commit f61c9d4

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
ruby-version: [2.6, 2.7, 3.0, 3.1]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
bundler-cache: true # This will set up Bundler and cache the dependencies
29+
30+
- name: Run tests
31+
run: bundle exec rspec

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
# rspec failure tracking
1111
.rspec_status
1212
*.gem
13+
Gemfile.lock

0 commit comments

Comments
 (0)