Skip to content

Commit 0a1fd2c

Browse files
committed
Add run RSpec tests workflow
1 parent c9a606b commit 0a1fd2c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/rspec.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run RSpec tests
2+
on: [push, pull_request]
3+
jobs:
4+
run-rspec-tests:
5+
strategy:
6+
matrix:
7+
version: ['7.0', '6.0']
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Ruby
12+
uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: '3.2'
15+
bundler-cache: true # Runs 'bundle install' and caches installed gems automatically
16+
- name: Remove the default activerecord Gem
17+
run: bundle remove activerecord
18+
- name: Add a specific version of the activerecord Gem
19+
run: bundle add activerecord --version "~> ${{ matrix.version }}" --group "development,test"
20+
- name: Run tests
21+
run: ./run_tests.sh

0 commit comments

Comments
 (0)