Skip to content

Commit

Permalink
[NOJIRA] Use latest ruby CI overhaul
Browse files Browse the repository at this point in the history
Signed-off-by: delano <[email protected]>
  • Loading branch information
delano committed Jun 17, 2024
1 parent 67e7e2b commit 803de60
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 7 deletions.
58 changes: 51 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,69 @@ name: Ruby
on:
push:
branches:
- master
- main

pull_request:

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.1.2'
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@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
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
File renamed without changes.

0 comments on commit 803de60

Please sign in to comment.