-
Notifications
You must be signed in to change notification settings - Fork 347
33 lines (27 loc) · 814 Bytes
/
ci.yml
File metadata and controls
33 lines (27 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# .github/workflows/ci.yml
name: Ruby CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Don't cancel other matrix jobs if one fails
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: latest
# This automatically runs 'bundle install' and caches gems
# It uses the Gemfile.lock for efficient caching
bundler-cache: true
- name: Run RSpec tests
run: bundle exec rspec