Another fix for azure deploy #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Application with Gradle | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test-app-with-gradle: | |
runs-on: ubuntu-latest | |
services: | |
note-postgres: | |
image: postgres:alpine | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: none | |
POSTGRES_DB: noteapp | |
ports: | |
- "5100:5432" | |
options: --name note-postgres | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Update Project Version using Python Script | |
run: python note-app-backend/src/main/resources/update_version.py | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
env: | |
SPRING_DATASOURCE_URL: jdbc:postgresql://localhost:5100/noteapp | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: none | |
POSTGRES_DB: noteapp | |
FRONTEND_URL: http://localhost:4200 | |
GOOGLE_CLIENT_ID: none | |
GOOGLE_CLIENT_SECRET: none | |
with: | |
gradle-version: '8.2' | |
arguments: build | |
build-root-directory: note-app-backend |