-
-
Notifications
You must be signed in to change notification settings - Fork 108
32 lines (31 loc) · 1010 Bytes
/
main.yml
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
---
name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
steps:
- name: Set git to master
run: git config --global init.defaultBranch master
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Update system gem for Ruby 2.5, 2.6
run: gem update --system 3.2.3
if: ${{ matrix.ruby <= '2.6' }}
- name: Install bundler v2.3.10 for Ruby 3.1 and below
run: gem install bundler -v '2.3.10'
if: ${{ matrix.ruby <= '3.1' }}
- name: Install bundler v2.3.7 for Ruby 3.2 and above
run: gem install bundler -v '2.3.7'
if: ${{ matrix.ruby >= '3.2' }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec