-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (50 loc) · 1.33 KB
/
test.yml
File metadata and controls
59 lines (50 loc) · 1.33 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
57
58
59
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-24.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: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
cache: 'sbt'
- name: Set up SBT
uses: sbt/setup-sbt@v1
- name: Database Setup
run: psql postgresql://horta:hell@localhost/loglist -c 'create extension pgcrypto;'
- name: Test
run: sbt test