Skip to content

fix: sonar issue

fix: sonar issue #185

name: spring-boot-graphql-querydsl
on:
push:
paths:
- "graphql/spring-boot-graphql-querydsl/**"
branches: [main]
pull_request:
paths:
- "graphql/spring-boot-graphql-querydsl/**"
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Run Unit & Integration Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: "graphql/spring-boot-graphql-querydsl"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
cache: "gradle"
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew clean spotlessApply build --info