-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (37 loc) · 1.11 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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.1.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] }}