Skip to content

Commit 47660b4

Browse files
committed
Add basic github action yaml
1 parent 435f80a commit 47660b4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
ci:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
ruby: [3.1, 3.2, 3.3]
13+
rails: [61, 70, 71, 72]
14+
15+
# Rails 7.2 requires ruby 3.1 and higher
16+
include:
17+
- ruby: "3.0"
18+
rails: 61
19+
- ruby: "3.0"
20+
rails: 70
21+
- ruby: "3.0"
22+
rails: 71
23+
env:
24+
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
25+
steps:
26+
- name: checkout code
27+
uses: actions/checkout@v4
28+
- name: setup Ruby
29+
uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
bundler-cache: true
33+
- name: run tests
34+
run: bundle exec rake

0 commit comments

Comments
 (0)