-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (33 loc) · 956 Bytes
/
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
name: Clojure CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-clojure:
strategy:
matrix:
java-version: [8, 11]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Print java version
run: java -version
- name: setup git
run: git config --global user.email "[email protected]" && git config --global user.name "Your Name"
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693 # Clojure CLI based on tools.deps
- name: Get dependencies
run: clojure -P
- name: Run cljfmt lint check
run: clojure -M:lint
- name: Run nsorg lint check
run: clojure -M:nsorg
- name: Run clj tests
run: clojure -M:test:test-runner