-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.31 KB
/
test.yaml
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
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
options:
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
REDIS_URL: redis://127.0.0.1:6379/0
JDBC_DATABASE_URL: jdbc:postgresql://127.0.0.1:5432/postgres?user=postgres&password=postgres
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
- uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
clj-kondo: latest
- run: clojure -A:test -P # cache deps
- uses: actions/[email protected]
env:
cache-name: maven-cache
with:
path: ~/.m2
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('deps.edn') }}
- run: script/test