Skip to content

Merge pull request #45 from AndreasDahl/upgrade-async #17

Merge pull request #45 from AndreasDahl/upgrade-async

Merge pull request #45 from AndreasDahl/upgrade-async #17

Workflow file for this run

name: Main workflow
on:
- pull_request
- push
jobs:
build:
services:
rabbitmq:
image: rabbitmq
ports:
- 5672/tcp
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.14.0
- 5.0.0
concurrency:
- async
- lwt
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam pin . --no-action
- run: opam install amqp-client amqp-client-${{ matrix.concurrency }} --deps-only --with-doc --with-test
- run: opam exec -- dune build -p amqp-client,amqp-client-${{ matrix.concurrency }}
- run: opam exec -- dune runtest -p amqp-client,amqp-client-${{ matrix.concurrency }}
- run: opam exec -- dune build @integration -p amqp-client,amqp-client-${{ matrix.concurrency }}
env:
AMQP_PORT: ${{ job.services.rabbitmq.ports[5672] }}