chore(github): add opam deps workflow

This commit is contained in:
Simon Cruanes 2022-09-26 11:25:36 -04:00
parent a0c8859519
commit 5b1f2af227
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

35
.github/workflows/opam-dependencies.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Main workflow
on:
pull_request:
push:
#schedule:
# Prime the caches every Monday
#- cron: 0 1 * * MON
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.14.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@analysis
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test --with-doc
- uses: ocaml/setup-ocaml/analysis@analysis