Skip to content

chore: enabling sonar analyses on build #22

chore: enabling sonar analyses on build

chore: enabling sonar analyses on build #22

Workflow file for this run

name: Build and Analyse
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main
jobs:
build-and-analyse:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Build and Analyse
uses: gradle/gradle-build-action@v3
with:
arguments: build sonar
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ github.token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}