From 1140cf827427c5a5bd2ec5a93fd1d600f6974c2e Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Fri, 23 Aug 2024 12:54:12 -0500 Subject: [PATCH] add build --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..be8b985 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + timeout-minutes: 5 + strategy: + matrix: + jdk: ['8', '11', '17', '21', '22'] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Prepare java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@3.5 + with: + lein: 2.9.8 + - run: ./scripts/test