diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..f3e77d339 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build + +on: + push: + branches: + - main + - feature/37-sonar-cube-pipeline + +jobs: + build: + name: Build # Comment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up JDK 21 + uses: actions/setup-java@v1 + with: + java-version: 21 + - name: Build and analyze + run: mvn clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}