You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action for checking that CljDoc will be able to analyze the project successfully
4
+
5
+
NOTE: CljDoc only works on the JAR archive of the library so you need to build it first.
6
+
7
+
Checking a clojure-deps based library is as simple as:
8
+
9
+
```yaml
10
+
name: Check Cljdoc
11
+
on: [pull_request]
12
+
jobs:
13
+
check-cljdoc:
14
+
runs-on: ubuntu-latest
15
+
steps:
16
+
- uses: actions/checkout@v1
17
+
- name Build target/<the lib>*.jar so that CljDoc analyze can use it:
18
+
run: clojure -T:build jar # REPALCE with whatever you do to build your jar
19
+
- name: CljDoc Check
20
+
uses: cljdoc/cljdoc-check-action@v1
21
+
```
22
+
23
+
For other types of libraries, you need to install these into the local Maven repository (e.g. via `lein install`) and pass it the Maven coordinate and version:
24
+
25
+
```yaml
26
+
# inside jobs.<name>.steps
27
+
- run: lein install # or whatever is usitable for your build tool/project, to install the library into a maven repo
0 commit comments