Skip to content

Commit 8bf0386

Browse files
committed
Add Github spec workflow
1 parent df730af commit 8bf0386

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
ruby-version: ['3.2', '3.3', '3.4']
16+
rails-version: ['7.2', '8.0', '8.1']
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Ruby ${{ matrix.ruby-version }}
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
bundler-cache: true
26+
env:
27+
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile
28+
29+
- name: Install dependencies
30+
run: |
31+
gem install bundler
32+
bundle install --jobs 4 --retry 3
33+
34+
- name: Run tests
35+
run: bundle exec rspec

0 commit comments

Comments
 (0)