Upgrade jOOQ: 3.19.15 #1776
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: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- BRANCH* | |
jobs: | |
build: | |
permissions: | |
checks: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_HOST_AUTH_METHOD: trust | |
# Set health checks to wait until postgres has started | |
options: >- | |
--name postgres | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --force --recursive --depth=1 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: 21.0.2 | |
java-package: jdk+fx | |
cache: 'gradle' | |
- name: Build GanttProject | |
run: ./gradlew --no-daemon build | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
**/test-results/**/*.xml | |
**/test-results/**/*.trx | |
**/test-results/**/*.json | |
- name: Publish libs | |
run: ./gradlew --no-daemon publishToMavenLocal | |
- name: Initialize PostgreSQL | |
run: | | |
cd cloud.ganttproject.colloboque/src/main/resources | |
docker run --rm --network ${{ job.container.network }} --link postgres:postgres -v $(pwd):/src -w /src postgres psql -h postgres -U postgres -f ./init-colloboque-server.sql | |
- name: Build Colloboque | |
run: cd cloud.ganttproject.colloboque && ./gradlew --no-daemon build |