-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.34 KB
/
ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
env:
CLOJURE_CLI_VERSION: "1.11.1.1165"
BB_VERSION: "0.9.162"
ZPRINT_VERSION: "1.2.3"
CLJ_KONDO_VERSION: "2022.09.08"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
bb: ${{env.BB_VERSION}}
zprint: ${{env.ZPRINT_VERSION}}
clj-kondo: ${{env.CLJ_KONDO_VERSION}}
- name: Run checks
run: bb check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install java
uses: actions/setup-java@v2
with:
distribution: 'adopt-hotspot'
java-version: '17'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
bb: ${{env.BB_VERSION}}
cli: ${{env.CLOJURE_CLI_VERSION}}
- name: Download dependencies
run: bb deps
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
$HOME/.m2/repository
$GITHUB_WORKSPACE/.cpcache
key: ${{ runner.os }}-clojure-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-clojure
- name: Run tests
run: bb test