Add Workflow and Business Rules Services #361
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 ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 8, 11, 17 ] | |
name: Build with Java ${{ matrix.java-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java-version }} | |
- name: Build with Maven | |
run: mvn clean install -Dgpg.skip --no-transfer-progress | |
- name: Check for source code changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
echo -e "Following files need to be formatted: \n$(git diff --name-only)" | |
exit 1 | |
fi |