From 11fac2e5d731be78598e2d2f0c5bb1c1922b8d0c Mon Sep 17 00:00:00 2001 From: James Reeves Date: Sun, 13 Oct 2024 00:31:08 +0100 Subject: [PATCH] Add GitHub Actions workflow for tests --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7dce6d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Tests +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Prepare java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '8' + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@10.1 + with: + lein: 2.9.10 + + - name: Cache clojure dependencies + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: cljdeps-${{ hashFiles('project.clj') }} + restore-keys: cljdeps- + + - name: Run tests + run: lein test diff --git a/README.md b/README.md index 45b1429..193eec4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Duct Simple Logger +# Duct Simple Logger [![Build Status](https://github.com/duct-framework/logger.simple/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/logger.simple/actions/workflows/test.yml) A simple logging library for the [Duct][] framework that's fully compatible with [Integrant][].