Skip to content

Commit

Permalink
adds postgres and redis server to travis and gitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Feb 2, 2020
1 parent c010e62 commit 4c13933
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 130 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/maven.yml
Expand Up @@ -7,6 +7,26 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres:11.6-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mongodb:
image: mongo
ports:
- 27017:27017
redis:
image: redis
ports:
- 6379:6379

steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/postgres-service.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/redis-service.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -5,9 +5,11 @@ jdk:

services:
- mongodb
- redis-server
- postgresql

script:
- ./mvnw clean verify
- ./mvnw -T 1C clean verify
cache:
directories:
- '$HOME/.m2/repository'
Expand Down

0 comments on commit 4c13933

Please sign in to comment.