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/.travis.yml b/.travis.yml deleted file mode 100644 index 0791305..0000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: clojure diff --git a/README.md b/README.md index efc2824..211ba00 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Duct module.sql +# Duct module.sql [![Build Status](https://github.com/duct-framework/module.sql/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/module.sql/actions/workflows/test.yml) A [Duct][] module that adds [Integrant][] keys for a [hikari-cp][] SQL database connection pool and [Ragtime][] migrations to a configuration.