Skip to content

Use sonar workflow_run action - Codestyle #2

Use sonar workflow_run action - Codestyle

Use sonar workflow_run action - Codestyle #2

Workflow file for this run

name: "Codestyle"
# we have multiple workflows - this helps to distinguish for them
run-name: "${{ github.event.pull_request.title && github.event.pull_request.title || github.ref_name }} - Codestyle"
on:
push:
branches: [ develop, release/* ]
workflow_dispatch:
pull_request:
branches: [ develop ]
#
# Style-check it's a dedicated workflow. This allows us to open a PR, run all tests and fix styling issue later ;).
#
jobs:
check-codestyle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Spotless
run: mvn spotless:check