-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50a21c5
commit 876bdb4
Showing
2 changed files
with
49 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,53 @@ | ||
name: AWS CI | ||
on: [push] | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
run: | ||
name: Tests | ||
runs-on: ${{ matrix.operating-system }} | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
ocaml-version: [ '4.08.1', '4.09.1', '4.10.1', '4.11.2', '4.12.0'] | ||
os: | ||
- ubuntu-latest | ||
|
||
ocaml-compiler: | ||
- 4.08.x | ||
- 4.09.x | ||
- 4.10.x | ||
- 4.11.x | ||
- 4.12.x | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
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 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
opam install . --deps-only --with-test --yes | ||
- name: Build | ||
run: | | ||
opam exec -- dune build @all | ||
- name: Tests | ||
run: | | ||
opam exec -- dune build @runtest | ||
- name: Opam lint | ||
run: | | ||
opam lint aws.opam aws-lwt.opam aws-async.opam \ | ||
aws-autoscaling.opam aws-cloudformation.opam aws-cloudtrail.opam \ | ||
aws-cloudwatch.opam aws-ec2.opam aws-elasticache.opam \ | ||
aws-elasticloadbalancing.opam \ | ||
aws-rds.opam aws-route53.opam aws-sdb.opam aws-sqs.opam aws-ssm.opam aws-sts.opam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ lib/**/.merlin | |
.envrc | ||
**/.merlin | ||
.idea | ||
/_opam |