-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (42 loc) · 1.12 KB
/
clojure.yml
File metadata and controls
52 lines (42 loc) · 1.12 KB
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
name: Clojure CI
on:
push:
pull_request:
branches: [ devel ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
# Install just one or all simultaneously
# The value must indicate a particular version of the tool, or use 'latest'
# to always provision the latest version
cli: 1.11.4.1474
lein: 2.12.0
cljfmt: latest
# Optional step:
- name: Cache clojure dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-
- name: Lint
run: lein cljfmt check
- name: Install dependencies
run: lein deps
- name: Run tests
run: lein test