diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index d2f0105b..47f70b8d 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -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 diff --git a/modules/reitit-dev/project.clj b/modules/reitit-dev/project.clj index d1e6855f..cacc07b8 100644 --- a/modules/reitit-dev/project.clj +++ b/modules/reitit-dev/project.clj @@ -11,4 +11,6 @@ :dependencies [[metosin/reitit-core] [com.bhauman/spell-spec] [expound] - [fipp]]) + [fipp] + [org.clojure/core.rrb-vector] + [mvxcvi/arrangement]]) diff --git a/modules/reitit-interceptors/project.clj b/modules/reitit-interceptors/project.clj index aa9d74b8..a887d7d4 100644 --- a/modules/reitit-interceptors/project.clj +++ b/modules/reitit-interceptors/project.clj @@ -11,4 +11,5 @@ :inherit [:deploy-repositories :managed-dependencies]} :dependencies [[metosin/reitit-ring] [lambdaisland/deep-diff] - [metosin/muuntaja]]) + [metosin/muuntaja] + [metosin/spec-tools]]) diff --git a/project.clj b/project.clj index fc210596..e4ffbc57 100644 --- a/project.clj +++ b/project.clj @@ -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"]] diff --git a/scripts/cljdoc-check.sh b/scripts/cljdoc-check.sh new file mode 100755 index 00000000..a8b4e005 --- /dev/null +++ b/scripts/cljdoc-check.sh @@ -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