mirror of
https://github.com/metosin/reitit.git
synced 2025-12-19 01:11:11 +00:00
Merge pull request #327 from valerauko/test-multiple-jdk
Test against multiple JDK
This commit is contained in:
commit
54dc6e3dab
1 changed files with 20 additions and 3 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
version: 2
|
version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
test-clj:
|
test-clj:
|
||||||
working_directory: ~/test
|
working_directory: ~/test
|
||||||
|
parameters:
|
||||||
|
image-name:
|
||||||
|
type: string
|
||||||
docker:
|
docker:
|
||||||
- image: clojure:lein-2.7.1
|
- image: << parameters.image-name >>
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
|
@ -17,6 +20,9 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: ./scripts/test.sh clj
|
command: ./scripts/test.sh clj
|
||||||
|
- run:
|
||||||
|
name: Install curl if missing
|
||||||
|
command: apt update && apt install -y curl
|
||||||
- run:
|
- run:
|
||||||
name: Verify cljdoc.edn
|
name: Verify cljdoc.edn
|
||||||
command: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
|
command: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
|
||||||
|
|
@ -103,7 +109,18 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test-and-build-docs:
|
test-and-build-docs:
|
||||||
jobs:
|
jobs:
|
||||||
- test-clj
|
- test-clj:
|
||||||
|
name: jdk8
|
||||||
|
image-name: clojure:openjdk-8-lein-2.9.1
|
||||||
|
- test-clj:
|
||||||
|
name: jdk11
|
||||||
|
image-name: clojure:openjdk-11-lein-2.9.1
|
||||||
|
- test-clj:
|
||||||
|
name: jdk13
|
||||||
|
image-name: clojure:openjdk-13-lein-2.9.1
|
||||||
|
- test-clj:
|
||||||
|
name: jdk14
|
||||||
|
image-name: clojure:openjdk-14-lein-2.9.1
|
||||||
- test-cljs
|
- test-cljs
|
||||||
- build-docs:
|
- build-docs:
|
||||||
filters:
|
filters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue