run tests with deps insteadof lein #23
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: Clojure CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distribution: [ 'temurin' ] | |
java: [ '11', '17', '21' ] | |
name: Java ${{ matrix.Java }} (${{ matrix.distribution }}) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.3.1463 | |
- name: Test with deps | |
run: clojure -X:test | |
publish: | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Publish | |
env: | |
CLOJARS_USER: ${{ secrets.CLOJARS_USER }} | |
CLOJARS_PASS: ${{ secrets.CLOJARS_PASS }} | |
run: lein deploy clojars |