-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (40 loc) · 1.05 KB
/
tests-and-checks.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: tests-and-checks
run-name: Running project tests & checks
on: [workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
java-version: [8, 11, 21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Install Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
bb: latest
- name: Check Versions
run: |
java -version
clojure -version
bb --version
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-
- name: Run Clojure tests
run: bb run test :all :project