From 1b80abe5f35b9f27568e9a620d8ddb77bd22b7a7 Mon Sep 17 00:00:00 2001 From: Cam Saul Date: Mon, 12 Aug 2024 19:28:26 +0000 Subject: [PATCH] Use setup-clojure to install Kondo --- .github/workflows/tests.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b13fa8b..4e92c24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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/setup-clojure@12.5 + with: + clj-kondo: "2023.09.07" - run: clj-kondo --version - name: Copy Kondo config from deps run: >-