.github/workflows/main.yml in amqp-client-0.1.0 vs .github/workflows/main.yml in amqp-client-0.2.0
- old
+ new
@@ -3,16 +3,33 @@
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.7', '3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
- ruby-version: 3.0.0
+ ruby-version: ${{ matrix.ruby }}
- name: Run the default task
run: |
- gem install bundler -v 2.2.15
bundle install
bundle exec rake
+ env:
+ AMQP_PORT: ${{ job.services.rabbitmq.ports[5672] }}
+