WIP: Rewrite #184
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Kmono CI" | |
# - name: Cache clojure dependencies | |
# uses: actions/cache@v3 | |
# with: | |
# path: | | |
# ~/.m2/repository | |
# ~/.gitlibs | |
# ~/.deps.clj | |
# key: cljdeps-${{ hashFiles('deps.edn') }} | |
# restore-keys: cljdeps- | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: 'maven' | |
cache-dependency-path: '**/deps.edn' | |
- uses: extractions/setup-just@v1 | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
- name: Preload dependencies | |
run: | | |
just cli cp -P ':*/*' > /dev/null | |
- name: Build | |
run: | | |
just build | |
- name: Test | |
run: | | |
just cli run -M ':*/test' | |
# - name: Release | |
# env: | |
# CLOJARS_USERNAME: infrastructure-kepler16-com | |
# CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
# run: | | |
# just release \ | |
# ":snapshot?" ${{ github.ref_name != 'master' }} \ | |
# ":create-tags?" ${{ github.ref_name == 'master' }} | |