From a94a1ac0234256001c57f943d48a4e5f01e37c23 Mon Sep 17 00:00:00 2001 From: Mateus Carvalho <1434224+mtsbarbosa@users.noreply.github.com> Date: Sat, 8 Apr 2023 11:53:23 -0300 Subject: [PATCH] Adding test workflow --- .github/workflows/pr.yml | 25 +++++++++++++++++++++++++ project.clj | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..f93a639 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,25 @@ +name: PR checks + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Run install + run: lein install + - name: Generate sample + run: lein new org.clojars.majorcluster/diplomat-http-w-datomic-service bakery + - name: Install dependencies + run: lein deps + working-directory: ./bakery + - name: Run tests + run: lein test + working-directory: ./bakery diff --git a/project.clj b/project.clj index 785d93f..51f1582 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject org.clojars.majorcluster/lein-template.diplomat-http-w-datomic-service "0.2.3" +(defproject org.clojars.majorcluster/lein-template.diplomat-http-w-datomic-service "0.2.4" :description "Diplomat architecture-pedestal styled template with datomic db for leiningen generation" :url "https://github.com/majorcluster/diplomat-http-w-datomic-service-template" :license {:name "MIT License"