Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:linters {:duplicate-require {:level off}
:unresolved-symbol {:exclude [*input*]}}}
20 changes: 20 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a
with:
submodules: false
- name: Install bb & clj-kondo
run: |
curl -sL -o install-bb https://raw.githubusercontent.com/babashka/babashka/master/install
chmod +x install-bb
sudo ./install-bb

curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo
chmod +x install-clj-kondo
./install-clj-kondo
which clj-kondo
- name: Lint
run: bb lint

ubuntu-test:
name: Ubuntu 24.04 - Test
runs-on: ubuntu-24.04
Expand Down
9 changes: 9 additions & 0 deletions bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{:tasks
{:requires [[babashka.fs :as fs]
[babashka.process :refer [shell]]]
lint (let [files (fs/glob "." "*/jank-build.bb")]
(when (seq files)
(->
(apply shell {:continue true} "clj-kondo" "--lint" files)
:exit
System/exit)))}}
Loading