Skip to content

Introduce optional-args #209

Introduce optional-args

Introduce optional-args #209

Workflow file for this run

name: Clojure tests
on: [push]
jobs:
clojure:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
# It is important to install java before installing clojure tools which needs java
# exclusions: babashka, clj-kondo and cljstyle
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693 # Clojure CLI based on tools.deps
clj-kondo: 2022.05.31 # Clj-kondo
zprint: 1.2.3 # zprint
# Optional step:
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- name: Run clojure tests
run: clojure -X:test/run