aboutsummaryrefslogtreecommitdiff
path: root/.github/main.workflow
diff options
context:
space:
mode:
Diffstat (limited to '.github/main.workflow')
-rw-r--r--.github/main.workflow31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/main.workflow b/.github/main.workflow
new file mode 100644
index 0000000..995aac3
--- /dev/null
+++ b/.github/main.workflow
@@ -0,0 +1,31 @@
+workflow "Build" {
+ on = "push"
+ resolves = ["Deploy to pages"]
+}
+
+action "Test" {
+ uses = "./.github/action"
+ args = "test"
+}
+
+action "Covergage" {
+ uses = "./.github/action"
+ args = "lein cloverage --junit"
+ needs = ["Test"]
+}
+
+action "Package" {
+ uses = "./.github/action"
+ args = "package"
+ needs = ["Covergage"]
+}
+
+action "Deploy to pages" {
+ uses = "JamesIves/github-pages-deploy-action@master"
+ env = {
+ BRANCH = "gh-pages"
+ FOLDER = "public"
+ }
+ secrets = ["ACCESS_TOKEN"]
+ needs = ["Package"]
+}