Skip to content

Fix executables path #19

Fix executables path

Fix executables path #19

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: "Ruby ${{ matrix.ruby }} w/ redis:${{ matrix.redis }}"
strategy:
fail-fast: true
matrix:
include:
- ruby: '3.3'
bundler: latest
rubygems: latest
redis: 5.2
- ruby: '3.2'
bundler: latest
rubygems: latest
redis: 5.2
- ruby: '3.2'
bundler: latest
rubygems: latest
redis: 4.8
- ruby: '3.2'
bundler: latest
rubygems: latest
redis: 4.7
- ruby: '3.1'
bundler: latest
rubygems: latest
redis: 5.2
- ruby: '3.0'
bundler: latest
rubygems: latest
redis: 5.2
- ruby: '2.7'
bundler: '2.4.22'
rubygems: '3.2.3'
redis: 5.2
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: true # runs bundle install
- name: Install redis gem @ ${{ matrix.redis }}
if: matrix.redis != ''
run: |
gem install redis --version ${{ matrix.redis }}
- name: Run the tryouts
run: bundle exec try -v try/*_try.rb