forked from jrochel/ocaml-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.66 KB
/
ci.yaml
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
46
47
48
49
50
name: AWS CI
on: [push]
jobs:
run:
name: Tests
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
ocaml-version: [ '4.08.1', '4.09.1', '4.10.1', '4.11.2', '4.12.0']
steps:
- uses: actions/checkout@master
- uses: ocaml/setup-ocaml@v2
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: |
opam pin add aws.dev -n .
opam pin add aws-lwt.dev -n .
opam pin add aws-async.dev -n .
# Pin the generated bindings
opam pin add aws-autoscaling.dev -n .
opam pin add aws-cloudformation.dev -n .
opam pin add aws-cloudtrail.dev -n .
opam pin add aws-cloudwatch.dev -n .
opam pin add aws-ec2.dev -n .
opam pin add aws-elasticache.dev -n .
opam pin add aws-elasticloadbalancing.dev -n .
opam pin add aws-rds.dev -n .
opam pin add aws-route53.dev -n .
opam pin add aws-sdb.dev -n .
opam pin add aws-sqs.dev -n .
opam pin add aws-ssm.dev -n .
opam pin add aws-sts.dev -n .
- name: Packages
run: |
opam depext -yt aws aws-lwt aws-async \
aws-autoscaling aws-cloudformation aws-cloudtrail \
aws-cloudwatch aws-ec2 aws-elasticache \
aws-elasticloadbalancing \
aws-rds aws-route53 aws-sdb aws-sqs aws-ssm aws-sts
- name: Dependencies
run: opam install -t . --deps-only
- name: Build
run: opam exec -- dune build
# Running tests requires AWS permissions disabling for now.
# - name: Test
# run: opam exec -- dune runtest