Refactor request process to utilize process parallization of the camunda process engine #178
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+** | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
# Set up maven repository credentials for highmed-dsf dependencies | |
server-id: highmed-dsf | |
server-username: USERNAME | |
server-password: GITHUB_TOKEN | |
- name: Cache Local Maven Repo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: maven-repo | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
- name: Build with Maven | |
run: mvn -B verify --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
USERNAME: ${{ github.actor }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
build: | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare Version | |
id: prep | |
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
# Set up maven repository credentials for highmed-dsf dependencies | |
server-id: highmed-dsf | |
server-username: USERNAME | |
server-password: GITHUB_TOKEN | |
- name: Cache Local Maven Repo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: maven-repo | |
- name: Add GitHub Server Credentials to Maven settings.xml | |
uses: s4u/[email protected] | |
with: | |
servers: '[{"id": "highmed-dsf", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]' | |
- name: Set Version in Maven Parent Project and Submodules | |
run: mvn -q versions:set -DnewVersion="${{ steps.prep.outputs.version }}" -DprocessAllModules=true | |
- name: Build with Maven | |
run: mvn -B deploy -DskipTests --file feasibility-dsf-process/pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
USERNAME: ${{ github.actor }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: feasibility-dsf-process/target/feasibility-dsf-process-*.jar | |
name: "Feasibility DSF Process - v${{ steps.prep.outputs.version }}" | |