Skip to content

Merge pull request #143 from Code-4-Community/kjung/fix-email-case-in… #116

Merge pull request #143 from Code-4-Community/kjung/fix-email-case-in…

Merge pull request #143 from Code-4-Community/kjung/fix-email-case-in… #116

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: placeholder_db_password
POSTGRES_DB: lucys-love-bus
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
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven Dependencies
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- run: cp common/src/main/resources/properties/server.properties.example common/src/main/resources/properties/server.properties
- name: build and test
run: mvn -B verify