mirror of
https://github.com/metosin/reitit.git
synced 2025-12-22 18:41:10 +00:00
Merge pull request #629 from metosin/cljdoc-check
Check cljdoc analysis on gha
This commit is contained in:
commit
5b7b0a7b4e
5 changed files with 38 additions and 3 deletions
17
.github/workflows/testsuite.yml
vendored
17
.github/workflows/testsuite.yml
vendored
|
|
@ -70,9 +70,24 @@ jobs:
|
|||
run: ./scripts/test.sh cljs
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
name: Lint cljdoc.edn
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Verify cljdoc.edn
|
||||
run: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
|
||||
|
||||
check-cljdoc:
|
||||
name: Check cljdoc analysis
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Setup Clojure
|
||||
uses: DeLaGuardo/setup-clojure@11.0
|
||||
with:
|
||||
lein: 2.9.5
|
||||
cli: 1.11.0.1100
|
||||
- name: Install cljdoc analyzer
|
||||
run: clojure -Ttools install io.github.cljdoc/cljdoc-analyzer '{:git/tag "RELEASE"}' :as cljdoc-analyzer
|
||||
- name: CljDoc Check
|
||||
run: ./scripts/cljdoc-check.sh
|
||||
|
|
|
|||
|
|
@ -11,4 +11,6 @@
|
|||
:dependencies [[metosin/reitit-core]
|
||||
[com.bhauman/spell-spec]
|
||||
[expound]
|
||||
[fipp]])
|
||||
[fipp]
|
||||
[org.clojure/core.rrb-vector]
|
||||
[mvxcvi/arrangement]])
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@
|
|||
:inherit [:deploy-repositories :managed-dependencies]}
|
||||
:dependencies [[metosin/reitit-ring]
|
||||
[lambdaisland/deep-diff]
|
||||
[metosin/muuntaja]])
|
||||
[metosin/muuntaja]
|
||||
[metosin/spec-tools]])
|
||||
|
|
|
|||
|
|
@ -45,9 +45,12 @@
|
|||
|
||||
[meta-merge "1.0.0"]
|
||||
[fipp "0.6.26" :exclusions [org.clojure/core.rrb-vector]]
|
||||
;; Deep-diff uses this version, override olders versiom from fipp.
|
||||
[org.clojure/core.rrb-vector "0.0.14"]
|
||||
[expound "0.9.0"]
|
||||
[lambdaisland/deep-diff "0.0-47"]
|
||||
[com.bhauman/spell-spec "0.1.2"]
|
||||
[mvxcvi/arrangement "2.1.0"]
|
||||
[ring/ring-core "1.10.0"]
|
||||
|
||||
[io.pedestal/pedestal.service "0.5.10"]]
|
||||
|
|
|
|||
14
scripts/cljdoc-check.sh
Executable file
14
scripts/cljdoc-check.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Need pom and jar for analyze local.
|
||||
# Need repo version installed to the local m2 for up-to-date dependencies between modules.
|
||||
# Install will run jar and pom tasks already.
|
||||
./scripts/lein-modules install
|
||||
|
||||
for i in modules/*; do
|
||||
cd $i
|
||||
clojure -J-Dclojure.main.report=stderr -Tcljdoc-analyzer analyze-local
|
||||
cd ../..
|
||||
done
|
||||
Loading…
Reference in a new issue