forked from loafle/openapi-generator-original
* [OCaml] Fix inconsistent oneOf primitive sample name * [OCaml] Fix encoding/decoding for free-form required fields * [OCaml] Change field comment to Odoc, move it after the field As per Odoc documentation, record field documentation should be *after* the field, not before. See https://ocaml.github.io/odoc/odoc/odoc_for_authors.html#special_comments type `my_record` * [OCaml] Cleanup non-generated files for ocaml sample
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: Samples OCaml
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/petstore/ocaml/**'
|
|
- 'samples/client/petstore/ocaml-fake-petstore/**'
|
|
- 'samples/client/petstore/ocaml-oneOf-primitive/**'
|
|
- 'samples/client/petstore/ocaml-additional-properties/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/petstore/ocaml/**'
|
|
- 'samples/client/petstore/ocaml-fake-petstore/**'
|
|
- 'samples/client/petstore/ocaml-oneOf-primitive/**'
|
|
- 'samples/client/petstore/ocaml-additional-properties/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build OCaml
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/client/petstore/ocaml/'
|
|
- 'samples/client/petstore/ocaml-fake-petstore/'
|
|
- 'samples/client/petstore/ocaml-oneOf-primitive/'
|
|
- 'samples/client/petstore/ocaml-additional-properties/'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Set-up OCaml
|
|
uses: ocaml/setup-ocaml@v3
|
|
with:
|
|
ocaml-compiler: 5
|
|
- name: Install
|
|
run: opam install . --deps-only --with-test
|
|
working-directory: ${{ matrix.sample }}
|
|
- name: Build
|
|
run: opam exec -- dune build
|
|
working-directory: ${{ matrix.sample }}
|