summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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