-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.02 KB
/
clojure.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:
paths:
- swift-ticketing/**
branches: [ "ci" ]
env:
POSTGRES_DB: swift_ticketing
POSTGRES_USER: swift_user
POSTGRES_PASSWORD: swift_password
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
working-directory: swift-ticketing
- name: Create test config file
run: |
mkdir resources
touch resources/config.test.edn
echo \
"{:server \
{:port 9090 \
:join? false} \
:database \
{:dbtype \"postgres\" \
:host \"localhost\" \
:port 5432 \
:dbname $POSTGRES_DB \
:username $POSTGRES_USER \
:password $POSTGRES_PASSWORD \
:schema \"swift_ticketing\"}}"
- name: Run tests
run: lein kaocha
working-directory: swift-ticketing