Skip to content

Evidently only Ubuntu runners support running container services #16

Evidently only Ubuntu runners support running container services

Evidently only Ubuntu runners support running container services #16

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 2.5
test:
needs: ruby-versions
# From https://docs.github.com/en/actions/guides/creating-redis-service-containers
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
name: Test (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest]
# exclude:
# - { ruby: jruby }
# - { ruby: jruby-head }
# - { ruby: truffleruby }
# - { ruby: truffleruby-head }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run tests & lint
run: bundle exec rake