Files
de.captica.expert.devops/.gitea/workflows/build-java.yaml

47 lines
1.2 KiB
YAML

#
#
# Build workflow for all modules of captica.expert
#
# Project: workflows
# Author: Marc Böhm <marc.boehm@captica.de>
# License: MIT License (see LICENSE.md)
#
# Copyright (c) captica GmbH est. 2021
#
name: Java build workflow for captica.expert modules
on:
workflow_call:
jobs:
build:
name: Build java distribution
runs-on: docker-ubuntu-nonroot
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
submodules: 'true'
- name: Setup java runtime
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ vars.JAVA_VERSION }}
- name: Run gradle build process
run: |
./gradlew build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts-build
path: |
build/libs/
build/*.sh
retention-days: 10
- name: Upload test artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts-test
path: |
build/test-results
build/reports
retention-days: 10