-
Notifications
You must be signed in to change notification settings - Fork 54
67 lines (57 loc) · 1.39 KB
/
lint-test-build.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
name: Lint, Test, Build
on:
pull_request:
push:
jobs:
lint-test-build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['8','11','17']
services:
postgres:
image: postgres:14.1
env:
POSTGRES_DB: hugtest
POSTGRES_USER: hugtest
POSTGRES_PASSWORD: hugtest
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: hugtest
MYSQL_USER: hugtest
MYSQL_PASSWORD: hugtest
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- name: Install Clojure
uses: DeLaGuardo/setup-clojure@4.0
with:
lein: 2.9.8
- name: Install jars locally
run: lein install-all
- name: Dependencies
run: lein deps
- name: Test
working-directory: ./hugsql-core
run: lein test-all