From 5aea1a232f57cd0ea7e732fde9a6a623c0ce297e Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Thu, 7 Apr 2022 12:45:34 +0200 Subject: Add test workflow. --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..937395a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: Tests +on: + push: + branches: + - master + workflow_dispatch: + branches: + - master +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Prepare java + uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '17' + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@4.0 + with: + lein: 'latest' + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: "Run tests" + run: lein test diff --git a/README.md b/README.md index 57f88f3..1c96c82 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Clarktown +[![Tests](https://github.com/askonomm/clarktown/actions/workflows/tests.yml/badge.svg)](https://github.com/askonomm/clarktown/actions/workflows/tests.yml) + An extensible and modular zero-dependency, pure-Clojure Markdown parser. ## Installation -- cgit v1.2.3