-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 838 Bytes
/
java-ci.yml
File metadata and controls
41 lines (32 loc) · 838 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
40
41
name: Java CI
on:
push:
branches-ignore:
- master
jobs:
container-job:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: GRm%m5cgTmw3S&kjxV
POSTGRES_DB: mfrestdb
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Gradle
run: ./gradlew build
- name: Run Tests
run: ./gradlew test
- name: SpotBugs
run: ./gradlew check
- name: OWASP Dependency Check
run: ./gradlew dependencyCheckAnalyze