-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (49 loc) · 1.36 KB
/
test.yml
File metadata and controls
56 lines (49 loc) · 1.36 KB
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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:9.3
env:
POSTGRES_USER: horta
POSTGRES_PASSWORD: hell
POSTGRES_DB: loglist
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: jdbc:postgresql:loglist?user=horta&password=hell
APPLY_EVOLUTIONS_SILENTLY: true
RECAPTCHA_PUBLIC_KEY: horta
RECAPTCHA_PRIVATE_KEY: horta
BASIC_AUTH_USERNAME: horta
BASIC_AUTH_PASSWORD: hell
APPROVAL_SMTP_HOST: "smtp.loglist.xyz"
APPROVAL_EMAIL: "noreply@loglist.xyz"
APPROVAL_EMAIL_PASSWORD: "hortahell"
steps:
- uses: actions/checkout@v2
- name: SBT Cache
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: test.${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
- name: Database Setup
run: psql postgresql://horta:hell@localhost/loglist -c 'create extension pgcrypto;'
- name: Test
run: sbt test