mirror of
https://github.com/openMF/fineract-pentaho.git
synced 2026-02-06 11:17:11 +00:00
34 lines
1000 B
YAML
34 lines
1000 B
YAML
name: Java CI with Maven
|
|
|
|
on:
|
|
push:
|
|
branches: [ "develop" ]
|
|
pull_request:
|
|
branches: [ "develop" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Source Code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'zulu'
|
|
cache: 'maven'
|
|
|
|
- name: Validate Code Formatting
|
|
# Enforce coding style guidelines immediately.
|
|
# Fails fast if the code does not adhere to the project's Spotless configuration.
|
|
run: mvn spotless:check --file pom.xml
|
|
|
|
- name: Build and Package
|
|
# Compiles the code and packages the JAR artifacts.
|
|
# Tests are currently skipped (-DskipTests) as integration tests require
|
|
# a running Fineract backend instance (localhost:8443) which is not
|
|
# available in this standard runner environment.
|
|
run: mvn -B clean package -U -DskipTests --file pom.xml |