Skip to content

Merge pull request #123 from szymonpoltorak/devel #273

Merge pull request #123 from szymonpoltorak/devel

Merge pull request #123 from szymonpoltorak/devel #273

Workflow file for this run

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