-
Notifications
You must be signed in to change notification settings - Fork 27
47 lines (36 loc) · 985 Bytes
/
test-and-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Clojure CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ 'zulu' ]
java: [ '11', '17' ]
name: Java ${{ matrix.Java }} (${{ matrix.distribution }})
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@9.5
with:
cli: 1.11.1.1165
- 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