Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Project cleanup. (project.clj/github actions workflow.)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhowe committed Jan 29, 2024
1 parent 65deccb commit dda05f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ jobs:

strategy:
matrix:
jdk_version: [8, 11, 14, 15, 16]
# JDK LTS: 8, 11, 17
jdk_version: [8, 11, 17]
os: [ubuntu-latest]

container:
image: clojure:openjdk-${{ matrix.jdk_version }}-lein

steps:
- uses: actions/checkout@v2
- name: Dependencies
run: lein deps
- name: Version
run: lein version
- name: Build
run: lein compile
- name: Info
run: |
lein version
- name: Package
run: |
lein deps
lein compile
lein uberjar
- name: Tests
run: lein test
- name: Package
run: lein uberjar
13 changes: 10 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
(defproject leave_balance "0.1.0-SNAPSHOT"

;;; Project Metadata
:description "Calculate end of year leave balance."
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}

;;; Dependencies, Plugins
:dependencies [[org.clojure/clojure "1.10.0"]
[clojure.java-time "0.3.2"]
[environ "1.2.0"]]
:main ^:skip-aot leave-balance.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})

;;; Profiles
:profiles {:uberjar {:aot :all}}

;;; Running Project Code
:main ^:skip-aot leave-balance.core)

0 comments on commit dda05f3

Please sign in to comment.