Merge pull request 'Use forgejo actions instead of drone.' (#11) from feature/forgejo-runner into main
All checks were successful
/ maven-build (push) Successful in 46s

Reviewed-on: #11
This commit is contained in:
Manuel Friedli 2026-02-12 23:49:07 +01:00
commit 1d69d838cc
2 changed files with 22 additions and 38 deletions

View file

@ -1,38 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: maven:3.9-eclipse-temurin-25
commands:
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
when:
ref:
include:
- refs/head/main
- refs/head/feature/**
- refs/tags/**
- name: test
image: maven:3.9-eclipse-temurin-25
commands:
- mvn test -B
when:
branch:
include:
- main
- feature/*
# - name: deploy
# image: maven:3.9-eclipse-temurin-25
# environment:
# REPO_TOKEN:
# from_secret: repo-token
# REPO_TOKEN_OSSRH:
# from_secret: repo-token-ossrh
# commands:
# - mvn -s maven-settings.xml deploy -DskipTests=true
# when:
# branch:
# - main
# event:
# exclude:
# - pull_request

View file

@ -0,0 +1,22 @@
on: [push]
jobs:
maven-build:
runs-on: docker
container:
image: node:25-trixie
steps:
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 25
- name: Install maven
run: |
apt-get update
apt-get install -y maven
- name: Checkout repository
uses: actions/checkout@v6
- name: Run maven build
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run tests
run: mvn test -B