LF8/.gitea/workflows/qs.yml
Jan Klattenhoff a3348fb777
Some checks failed
Quality Check / Gradle Check (pull_request) Failing after 1m13s
build: update postgres image version to 16.4
2024-09-25 09:52:02 +02:00

42 lines
1.0 KiB
YAML

name: "Quality Check"
on:
- pull_request
jobs:
oas:
name: "Gradle Check"
runs-on: "ubuntu-latest"
container:
image: "cimg/openjdk:21.0-node"
services:
postgres:
image: postgres:16.4
env:
POSTGRES_DB: lf8_starter_db
POSTGRES_USER: lf8_starter
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U lf8_starter"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: "Checkout"
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Check"
run: gradle check
- name: "Stop Gradle"
run: gradle --stop