-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.4 KB
/
test.yml
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
42
43
44
45
46
47
48
name: Test Application with Gradle
on:
push:
branches: [ "main", "devel" ]
pull_request:
branches: [ "main", "devel" ]
permissions:
contents: read
jobs:
test-app-with-gradle:
runs-on: ubuntu-latest
services:
corn-postgres:
image: postgres:alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: none
POSTGRES_DB: corn
ports:
- "5000:5432"
options: --name corn-postgres
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
env:
SPRING_DATASOURCE_URL: jdbc:postgresql://localhost:5000/corn
POSTGRES_USER: postgres
POSTGRES_PASSWORD: none
POSTGRES_DB: corn
FRONTEND_URL: http://localhost:4200
GOOGLE_CLIENT_ID: none
GOOGLE_CLIENT_SECRET: none
with:
gradle-version: '8.2'
arguments: build
build-root-directory: corn-backend