File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 path : |
2323 ~/.ivy2/cache
2424 ~/.sbt
25- key : ${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
25+ key : main. ${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
2626
2727 - name : Build
2828 run : sbt dist
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-20.04
14+
15+ services :
16+ postgres :
17+ image : postgres:9.3
18+ env :
19+ POSTGRES_USER : horta
20+ POSTGRES_PASSWORD : hell
21+ POSTGRES_DB : loglist
22+ ports :
23+ - 5432:5432
24+ # Set health checks to wait until postgres has started
25+ options : >-
26+ --health-cmd pg_isready
27+ --health-interval 10s
28+ --health-timeout 5s
29+ --health-retries 5
30+
31+ env :
32+ DATABASE_URL : jdbc:postgresql:loglist?user=horta&password=hell
33+ APPLY_EVOLUTIONS_SILENTLY : true
34+ RECAPTCHA_PUBLIC_KEY : horta
35+ RECAPTCHA_PRIVATE_KEY : horta
36+ BASIC_AUTH_USERNAME : horta
37+ BASIC_AUTH_PASSWORD : hell
38+ APPROVAL_SMTP_HOST : " smtp.loglist.xyz"
39+ APPROVAL_EMAIL : " noreply@loglist.xyz"
40+ APPROVAL_EMAIL_PASSWORD : " hortahell"
41+
42+ steps :
43+ - uses : actions/checkout@v2
44+ - name : SBT Cache
45+ uses : actions/cache@v2
46+ with :
47+ path : |
48+ ~/.ivy2/cache
49+ ~/.sbt
50+ key : test.${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
51+
52+ - name : Database Setup
53+ run : psql postgresql://horta:hell@localhost/loglist -c 'create extension pgcrypto;'
54+
55+ - name : Test
56+ run : sbt test
You can’t perform that action at this time.
0 commit comments