-
Notifications
You must be signed in to change notification settings - Fork 124
71 lines (59 loc) · 1.77 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Ruby
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
include:
- ruby: '3.3'
bundler: latest
rubygems: latest
- ruby: '3.2'
bundler: latest
rubygems: latest
- ruby: '3.1'
bundler: latest
rubygems: latest
- ruby: '3.0'
bundler: latest
rubygems: latest
- ruby: '2.7'
bundler: '2.4.22'
rubygems: '3.2.3'
services:
redis:
image: redis:bookworm@sha256:e422889e156ebea83856b6ff973bfe0c86bce867d80def228044eeecf925592b
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 3s
--health-retries 5
ports:
# https://docs.github.com/en/actions/using-containerized-services/creating-redis-service-containers#running-jobs-in-containers
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: ${{ matrix.rubygems }}
bundler: ${{ matrix.bundler }}
# When the following is true, also run "bundle install",
# and cache the result automatically. Ran into an issue
# with the caching and multiple ruby versions. Needs
# further investigation.
bundler-cache: false
- name: Re-run bundle install
run: bundle install
- name: Run the tryouts
run: bundle exec try -v try/*_try.rb