-
Notifications
You must be signed in to change notification settings - Fork 82
44 lines (42 loc) · 956 Bytes
/
test.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-clj:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
lein: 2.11.1
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: "m2-${{ hashFiles('project.clj') }}"
- name: Run tests
run: lein test
kondo:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/[email protected]
- uses: DeLaGuardo/clojure-lint-action@master
with:
check-name: Run clj-kondo
clj-kondo-args: >-
--lint
src/marginalia
test
github_token: ${{ secrets.GITHUB_TOKEN }}