From ac7073a0d337605a062cdfc3d69770dd9aab5576 Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Tue, 6 Feb 2024 17:35:05 +0900 Subject: [PATCH] Update actions --- .github/workflows/build.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87c0402..c492c77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,15 +6,26 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Setup Java - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '17' - - name: Setup Clojure - uses: DeLaGuardo/setup-clojure@4.0 - with: - lein: '2.9.8' - - name: Run tests - run: lein with-profile +1.9:+1.10:+1.11 test + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' + + - name: Setup Clojure + uses: DeLaGuardo/setup-clojure@12.3 + with: + lein: '2.11.1' + + - name: Cache clojure dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: cljdeps-${{ hashFiles('project.clj') }} + restore-keys: cljdeps- + + - name: Run tests + run: lein with-profile +1.9:+1.10:+1.11 test