-
Notifications
You must be signed in to change notification settings - Fork 288
39 lines (36 loc) · 846 Bytes
/
backend-ci.yml
File metadata and controls
39 lines (36 loc) · 846 Bytes
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
name: CI - Build Backend
on:
pull_request:
branches:
- main
paths:
- backend/**
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.1
env:
POSTGRES_USER: amigoscode
POSTGRES_PASSWORD: password
POSTGRES_DB: customer
ports:
- 5332:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build and run Unit/Integration Tests with Maven
run: mvn -ntp -B verify