-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (67 loc) · 1.76 KB
/
clojure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
clj:
strategy:
matrix:
# Supported Java versions: LTS releases and latest
# TODO: Replace 19=>20 when available
jdk: [8, 11, 17, 19]
clojure: [10, 11]
name: Clojure ${{ matrix.clojure }} (Java ${{ matrix.jdk }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java ${{ matrix.jdk }}
uses: actions/setup-java@v3.11.0
with:
distribution: zulu
java-version: ${{ matrix.jdk }}
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: 1.10.1.693
- name: Run unit tests
run: CLOJURE=clojure-${{ matrix.clojure }} bin/kaocha unit
- name: Generate docs tests
run: clojure -X:gen-doc-tests
- name: Run docs tests
run: CLOJURE=clojure-${{ matrix.clojure }} bin/kaocha generated
cljs:
name: ClojureScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java 11
uses: actions/setup-java@v3.11.0
with:
distribution: zulu
java-version: 11
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: 1.10.1.693
- name: Setup Node.js
uses: actions/setup-node@v3.6.0
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Run tests
run: bin/node
bb:
name: Babashka
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@12.5
with:
bb: 1.3.190
- name: Run tests
run: bin/bb