forked from ocaml-gospel/gospel
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 914 Bytes
/
build.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
name: Build and test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install OCaml compiler
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.11
dune-cache: true
- name: Install dependencies
run: |
opam install . --deps-only --with-test
- name: Show configuration
run: |
opam exec -- ocamlc -config
opam config list
opam exec -- dune printenv
opam list
- name: Build the test suite
run: opam exec -- dune build
- name: Run the normal tests
run: opam exec -- dune runtest
- name: Run the noisy tests
run: opam exec -- dune build @test-cmis
- name: Install the OPAM package
run: |
opam install --with-test ./gospel.opam