@@ -142,6 +142,116 @@ jobs:
142142 - run : opam exec -- dune runtest
143143` ` `
144144
145+ ## Extends
146+
147+ **STATUS: EXPERIMENTAL**
148+
149+ Note: All extends are recommended to use in separate jobs run on
150+ ` ubuntu-latest`.
151+
152+ - [deploy-doc](#deploy-doc)
153+ - [lint-doc](#lint-doc)
154+ - [lint-fmt](#lint-fmt)
155+ - [lint-opam](#lint-opam)
156+
157+ # ## deploy-doc
158+
159+ ` ` ` yml
160+ name: Deploy odoc
161+
162+ on:
163+ push:
164+ branches:
165+ - master
166+
167+ jobs:
168+ deploy-doc:
169+ runs-on: ubuntu-latest
170+ steps:
171+ - name: Checkout code
172+ uses: actions/checkout@v2
173+
174+ - name: Use OCaml 4.13.x
175+ uses: ocaml/setup-ocaml@v2
176+ with:
177+ ocaml-compiler: 4.13.x
178+ dune-cache: true
179+
180+ - name: Deploy odoc to GitHub Pages
181+ uses: ocaml/setup-ocaml/deploy-doc@v2
182+ ` ` `
183+
184+ See [action.yml](deploy-doc/action.yml) for inputs.
185+
186+ # ## lint-doc
187+
188+ ` ` ` yml
189+ jobs:
190+ lint-doc:
191+ runs-on: ubuntu-latest
192+ steps:
193+ - name: Checkout code
194+ uses: actions/checkout@v2
195+
196+ - name: Use OCaml 4.13.x
197+ uses: ocaml/setup-ocaml@v2
198+ with:
199+ ocaml-compiler: 4.13.x
200+ dune-cache: true
201+
202+ - name: Lint doc
203+ uses: ocaml/setup-ocaml/lint-doc@v2
204+ ` ` `
205+
206+ See [action.yml](lint-doc/action.yml) for inputs.
207+
208+ # ## lint-fmt
209+
210+ Note : The ocamlformat configuration file must have the version of the
211+ ocamlformat used in the project.
212+
213+ ` ` ` yml
214+ jobs:
215+ lint-fmt:
216+ runs-on: ubuntu-latest
217+ steps:
218+ - name: Checkout code
219+ uses: actions/checkout@v2
220+
221+ - name: Use OCaml 4.13.x
222+ uses: ocaml/setup-ocaml@v2
223+ with:
224+ ocaml-compiler: 4.13.x
225+ dune-cache: true
226+
227+ - name: Lint fmt
228+ uses: ocaml/setup-ocaml/lint-fmt@v2
229+ ` ` `
230+
231+ See [action.yml](lint-fmt/action.yml) for inputs.
232+
233+ # ## lint-opam
234+
235+ ` ` ` yml
236+ jobs:
237+ lint-opam:
238+ runs-on: ubuntu-latest
239+ steps:
240+ - name: Checkout code
241+ uses: actions/checkout@v2
242+
243+ - name: Use OCaml 4.13.x
244+ uses: ocaml/setup-ocaml@v2
245+ with:
246+ ocaml-compiler: 4.13.x
247+ dune-cache: true
248+
249+ - name: Lint opam
250+ uses: ocaml/setup-ocaml/lint-opam@v2
251+ ` ` `
252+
253+ See [action.yml](lint-opam/action.yml) for inputs.
254+
145255# # Advanced Configurations
146256
147257See [Examples](examples.md) for more complex patterns.
0 commit comments