-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.16 KB
/
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
48
49
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [ '8', '11', '17', '21' ]
name: Use JDK version ${{ matrix.jdk }}
steps:
- uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.jdk }}
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@10.1
with:
lein: latest
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: coreutils bats
version: 0.1
- name: Install dependencies
run: lein deps
- name: Run kondo
run: lein clj-kondo
- name: Build binaries
run: lein bin
- name: Set credential permissions for test run
run: chmod 600 test/creds.*
- name: Run tests
run: bats --tap test