summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsko Nomm <asko@bien.ee>2022-04-07 12:45:34 +0200
committerAsko Nomm <asko@bien.ee>2022-04-07 12:45:34 +0200
commit5aea1a232f57cd0ea7e732fde9a6a623c0ce297e (patch)
tree508b30e191e1cdc7066ec3595846af0585699bbd
parentba7a4eaa4e22e9d2213d5911cc275b3a7f702376 (diff)
Add test workflow.
-rw-r--r--.github/workflows/tests.yml31
-rw-r--r--README.md2
2 files changed, 33 insertions, 0 deletions
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