version 1-alpha5 -- minor changes: cleaning up unnecessary printing, … #21
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: note-to-test CI | |
on: [push] | |
jobs: | |
clojure: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# It is important to install java before installing clojure tools which needs java | |
# exclusions: babashka, clj-kondo and cljstyle | |
- name: Prepare Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Install Clojure tools | |
uses: DeLaGuardo/setup-clojure@11.0 | |
with: | |
# Install just one or all simultaneously | |
# The value must indicate a particular version of the tool, or use 'latest' | |
# to always provision the latest version | |
cli: latest # Clojure CLI based on tools.deps | |
# Optional step: | |
- name: Cache Clojure dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.deps.clj | |
# List all files containing dependencies: | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
restore-keys: cljdeps- | |
- name: Generate tests | |
run: clojure -M:dev:gen --verbose | |
- name: Execute tests and jar | |
run: clojure -T:build ci | |
# TODO: for this to work: change myusername to a valid Clojars username, generate a token, add it as a secret in github project settings | |
# - name: Deploy | |
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'org.scicloj/note-to-test' | |
# env: | |
# CLOJARS_PASSWORD: ${{ secrets.CLOJARSTOKEN }} | |
# CLOJARS_USERNAME: myusername | |
# run: clojure -T:build deploy |