Skip to content

Add clj-kondo

Add clj-kondo #28

Workflow file for this run

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 }}