Skip to content

Merge pull request #31 from TitaniumTitans/ShooterFinish #152

Merge pull request #31 from TitaniumTitans/ShooterFinish

Merge pull request #31 from TitaniumTitans/ShooterFinish #152

Workflow file for this run

---
name: SonarQube Analysis
on:
push:
pull_request:
branches: [ "main" ]
types: [opened, reopened, review_requested]
pull_request_review:
types: [edited, submitted]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/[email protected]
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: 'temurin'
cache: 'gradle'
- name: Cache SonarQube packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonar --info