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][].