Bump splint #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Install Clojure CLI Tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
clj-kondo: latest | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.clojure | |
~/.cpcache | |
key: clojure-m2-${{ hashFiles('deps.edn') }} | |
- name: Prep library | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: clojure -P -X:check:test | |
- name: Install ripgrep | |
run: sudo apt-get install ripgrep | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
- name: Run Linter | |
run: task lint |