-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (36 loc) · 1.11 KB
/
ci.yaml
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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '14' ]
name: For (java ${{ matrix.java }})
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
tools-deps: '1.10.1.754'
- name: Run tests (core)
run: clojure -M:test:runner
- name: Run tests (clojurescript)
run: clojure -M:test:cljs-runner
- name: Run tests (readme codeblocks)
run: clojure -M:readme
- name: Install clj-kondo
run: |
curl -sLO https://raw.githubusercontent.com/borkdude/clj-kondo/master/script/install-clj-kondo
chmod +x install-clj-kondo
sudo ./install-clj-kondo
- name: Lint src
run: clj-kondo --lint src/
- name: Lint test
run: clj-kondo --lint test/
- name: Run cljfmt check
run: clojure -Sdeps '{:deps {cljfmt {:mvn/version "0.7.0"}}}' -m cljfmt.main check