CAPAUT-353 Add wf

This commit is contained in:
2024-03-25 08:49:37 +01:00
parent a32de59177
commit 11e2bd79b3
2 changed files with 36 additions and 13 deletions

View File

@@ -0,0 +1,36 @@
#
#
# 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: Example workflow
on:
workflow_call:
jobs:
Build:
name: Java Build Job
runs-on: nodejs-ubuntu
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup java runtime
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Run gradle build process
run: |
./gradlew build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifacts-build
path: |
build/libs/
build/*.sh
retention-days: 10

View File

@@ -1,13 +0,0 @@
name: Test
run-name: ${{ gitea.actor }} pushed new changes to ${{ gitea.branch }}
on:
workflow-call:
jobs:
Build:
runs-on: nodejs-ubuntu
steps:
- name: Test step
run: |
echo "Hello World"