Skip to content

Fix

Fix #4

Workflow file for this run

name: SonarCloud Scan (ReportViewer)
on:
push:
branches:
- main
- develop
paths:
- "bundles/**"
- ".github/workflows/sonarcloud.yml"
pull_request:
types: [opened, synchronize, reopened]
paths:
- "bundles/**"
- ".github/workflows/sonarcloud.yml"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
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/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Build with Maven (Tycho)
run: mvn -B verify
working-directory: .
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v6.0.0
with:
projectBaseDir: bundles
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}