Skip to content

Test Pipeline Setup

Test Pipeline Setup #2

Workflow file for this run

name: Clojure Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.2.1446 # Clojure CLI based on tools.deps
clj-kondo: 2022.05.31
cljfmt: 0.10.2
cljstyle: 0.15.0
cmd-exe-workaround: 'latest'
zprint: 1.2.3
- name: Cache Clojure Dependencies
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-m2
- name: Run tests
run: clojure -M:dev:test