-
Notifications
You must be signed in to change notification settings - Fork 135
42 lines (34 loc) · 957 Bytes
/
main.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
name: CI
on: [push, pull_request]
jobs:
lint:
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
name: Run tests
steps:
- name: Checkout
uses: actions/checkout@v3
# exclusions: babashka, clj-kondo and cljstyle
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
lein: 2.9.1
- name: Cache lein project dependencies
id: clj-cache
uses: actions/cache@v3
with:
path: |
~/.m2
~/.lein
key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }}
restore-keys: ${{ runner.os }}-clojure
- name: Run tests
run: lein test-all