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