Skip to content

feat(strm-2691): add CI #1

feat(strm-2691): add CI

feat(strm-2691): add CI #1

Workflow file for this run

name: Pull Request Build
on:
push:
branches-ignore:
- "main"
permissions:
contents: write
jobs:
pr-build:
runs-on: ubuntu-latest
# based on: https://docs.github.com/en/actions/using-containerized-services/creating-postgresql-service-containers#running-jobs-directly-on-the-runner-machine
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build