name: Ruby on: [push,pull_request] jobs: build: runs-on: ubuntu-latest services: rabbitmq: image: rabbitmq:latest ports: - 5672/tcp # needed because the rabbitmq container does not provide a healthcheck options: >- --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 strategy: fail-fast: false matrix: ruby: ['2.6', '2.7', '3.0', 'jruby', 'truffleruby'] steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: Run the default task run: | bundle install bundle exec rake env: TESTOPTS: --exclude=/_tls$/ AMQP_PORT: ${{ job.services.rabbitmq.ports[5672] }}