Skip to content

Add the workflows for building PRs to main and main itself. #2

Add the workflows for building PRs to main and main itself.

Add the workflows for building PRs to main and main itself. #2

name: Validate Pull Request
on:
pull_request:
branches:
- master
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Java version
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
architecture: x64
- name: Quality gate
uses: sonarsource/sonarcloud-github-action@master
with:
sonar-token: ${{ secrets.SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
java-version: 21