2024-09-25 07:36:33 +00:00
|
|
|
name: "Quality Check"
|
|
|
|
|
|
|
|
on:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
oas:
|
|
|
|
name: "Gradle Check"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-09-25 07:40:55 +00:00
|
|
|
image: "cimg/openjdk:21.0-node"
|
2024-09-25 07:48:53 +00:00
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:15
|
|
|
|
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
|
2024-09-25 07:36:33 +00:00
|
|
|
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
|