Skip to content

ci: run test on pull request #2

ci: run test on pull request

ci: run test on pull request #2

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "17"
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.1
with:
lein: 2.9.1
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('project.clj') }}
restore-keys: cljdeps-
- name: Lint
run: lein clj-kondo
- name: Test
run: lein test