forked from rkday/ttlcache
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.07 KB
/
ci-cd.yml
File metadata and controls
46 lines (39 loc) · 1.07 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
name: ci-cd
on:
push:
paths-ignore:
- "README.md"
- "CONTRIBUTING.md"
- "CHANGELOG.md"
- "LICENSE"
- ".gitignore"
jobs:
build:
name: Build
runs-on: ubuntu-24.04
env:
LEIN_ROOT: "true"
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Install Clojure Tools
uses: DeLaGuardo/setup-clojure@13.4
with:
lein: 2.12.0
clj-kondo: 2026.01.19
- name: Check formatting
run: lein cljfmt check
- name: Lint
run: clj-kondo --lint "$(lein classpath)" --dependencies --parallel --copy-configs && clj-kondo --lint src --lint test && lein eastwood
- name: Test
run: lein test :all
- name: Deploy Jar to Clojars
if: contains(github.ref, 'refs/tags/')
run: lein deploy