From d0c88defcf7031b177e1ce08dc6c95d2928f7a66 Mon Sep 17 00:00:00 2001 From: rileynewton <95654936+rileynewton@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:03:59 -0800 Subject: [PATCH] (maint) Add Github Action to run lein test --- .github/workflows/lein-test.yaml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/lein-test.yaml diff --git a/.github/workflows/lein-test.yaml b/.github/workflows/lein-test.yaml new file mode 100644 index 0000000..cbbe543 --- /dev/null +++ b/.github/workflows/lein-test.yaml @@ -0,0 +1,39 @@ +name: lein_test + +on: + workflow_dispatch: + push: + branches: + - main + paths: '*' #['src/**','test/**'] + pull_request: + types: [opened, reopened, edited, synchronize] + paths: '*' #['src/**','test/**'] + +jobs: + run-lein-tests: + name: lein test - Java ${{ matrix.java }} + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8', '11', '17' ] + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Setup java + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: ${{ matrix.java }} + - name: Install Clojure tools + uses: DeLaGuardo/setup-clojure@10.2 + with: + cli: latest # Clojure CLI based on tools.deps + lein: latest # Leiningen + boot: latest # Boot.clj + bb: latest # Babashka + clj-kondo: latest # Clj-kondo + cljstyle: latest # cljstyle + zprint: latest # zprint + - name: Run lein tests + run: lein test