From 39b42d9067c16f3ec0d27774d2da578f8bb35c4b Mon Sep 17 00:00:00 2001 From: "Jeroen Baten [NIPV]" Date: Tue, 11 Nov 2025 12:02:44 +0100 Subject: [PATCH] Testing Forgejo actions --- .forgejo/workflows/ubuntu_24.04.yml | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .forgejo/workflows/ubuntu_24.04.yml diff --git a/.forgejo/workflows/ubuntu_24.04.yml b/.forgejo/workflows/ubuntu_24.04.yml new file mode 100644 index 000000000..e346673f2 --- /dev/null +++ b/.forgejo/workflows/ubuntu_24.04.yml @@ -0,0 +1,53 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Ubuntu 24.04 (Noble Numbat) + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: docker + container: + image: ubuntu:24.04 + + services: + postgres: + image: postgres:16.0 + env: + POSTGRES_USER: libreplan + POSTGRES_PASSWORD: libreplan + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + steps: + - uses: actions/checkout@v3 + + - name: Create libreplandev database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandev;" + + - name: Create libreplandevtest database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandevtest;" + + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install