forked from clojusc/ring-redis-session
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (62 loc) · 1.75 KB
/
ci.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-20.04
name: Lints code
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Uberjar
run: lein lint
build:
runs-on: ubuntu-20.04
strategy:
matrix:
java: [ '8', '11', '13', '15' ]
clojure: [ '1.5', '1.6', '1.7', '1.8', '1.9', '1.10' ]
name: Build with Clojure ${{ matrix.clojure }} on Java ${{ matrix.Java }}
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Install dependencies
run: lein with-profile +${{ matrix.clojure }} deps
- name: Combile
run: lein with-profile +${{ matrix.clojure }} compile
- name: Uberjar
run: lein with-profile +${{ matrix.clojure }} uberjar
test:
runs-on: ubuntu-20.04
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
strategy:
matrix:
java: [ '8', '11', '13', '15' ]
clojure: [ '1.5', '1.6', '1.7', '1.8', '1.9', '1.10' ]
name: Test with Clojure ${{ matrix.clojure }} on Java ${{ matrix.Java }}
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Install dependencies
run: lein with-profile +${{ matrix.clojure }} deps
- name: Run test
run: lein with-profile +${{ matrix.clojure }} test