Skip to content

Commit

Permalink
Use setup-clojure to install Kondo
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Aug 12, 2024
1 parent e722f0c commit 1b80abe
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,16 @@ jobs:
kondo:
runs-on: ubuntu-22.04
timeout-minutes: 10
env:
CLJ_KONDO_VERSION: "2023.09.07"
DOWNLOAD_URL: https://github.com/clj-kondo/clj-kondo/releases/download
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: kondo
- name: Install clj-kondo
run: |
curl -OL ${DOWNLOAD_URL}/v${CLJ_KONDO_VERSION}/clj-kondo-${CLJ_KONDO_VERSION}-linux-static-amd64.zip
curl -OL ${DOWNLOAD_URL}/v${CLJ_KONDO_VERSION}/clj-kondo-${CLJ_KONDO_VERSION}-linux-static-amd64.zip.sha256
cat clj-kondo-${CLJ_KONDO_VERSION}-linux-static-amd64.zip.sha256 >> SHA256sum.txt
echo " clj-kondo-${CLJ_KONDO_VERSION}-linux-static-amd64.zip" >> SHA256sum.txt
sha256sum -c SHA256sum.txt
unzip -d /usr/local/bin clj-kondo-${CLJ_KONDO_VERSION}-linux-static-amd64.zip
- name: Install Kondo
uses: DeLaGuardo/[email protected]
with:
clj-kondo: "2023.09.07"
- run: clj-kondo --version
- name: Copy Kondo config from deps
run: >-
Expand Down

0 comments on commit 1b80abe

Please sign in to comment.