Skip to content

Update Clojure workflows #126

Update Clojure workflows

Update Clojure workflows #126

Workflow file for this run

name: Clojure CI
on:
push:
branches: [ 3.x ]
pull_request:
branches: [ 3.x ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ["14", "17", "21"]
clojure: ["1.8", "1.9", "1.10", "1.11"]
name: Java ${{ matrix.java }} Clojure ${{ matrix.clojure }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-lein-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-lein-
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Install dependencies
run: lein deps
- name: Run tests
run: lein with-profile dev,${{matrix.clojure}} test :all
- name: Check Reflection Warnings
run: '! lein with-profile dev,${{matrix.clojure}} check 2>&1 | egrep "Reflection warning|Performance warning"'