-
Notifications
You must be signed in to change notification settings - Fork 46
50 lines (44 loc) · 1.05 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
ci:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Ruby 2.1, 2.2, 2.3 does not compile correctly under ubuntu > 20.04
os: [ubuntu-20.04]
ruby:
[
"2.0",
"2.1",
"2.2",
"2.3",
"2.4",
"2.5",
"2.6",
"2.7",
"3.0",
"3.1",
"3.2",
"3.3",
jruby,
]
env:
CC_TEST_REPORTER_ID: 20a1139ef1830b4f813a10a03d90e8aa179b5226f75e75c5a949b25756ebf558
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: ruby version
run: ruby -v
- name: Run rspec
run: bundle exec rspec