Skip to content

Merge pull request #2694 from Waffle/renovate/coveralls.plugin #1446

Merge pull request #2694 from Waffle/renovate/coveralls.plugin

Merge pull request #2694 from Waffle/renovate/coveralls.plugin #1446

Workflow file for this run

name: SonarCloud
defaults:
run:
working-directory: Source/JNA
on:
push:
branches:
- master
jobs:
build:
if: github.repository_owner == 'waffle'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
cache: maven
distribution: zulu
java-version: 21
- name: Set SONAR_SCANNER_JAVA_OPTS
run: echo "SONAR_SCANNER_JAVA_OPTS=-Xmx512m" >> $GITHUB_ENV
- name: Analyze with SonarCloud
run: ./mvnw verify jacoco:report sonar:sonar -B -V -D"sonar.projectKey=Waffle_waffle" -D"sonar.organization=waffle" -D"sonar.host.url=https://sonarcloud.io" -D"sonar.token=$SONAR_TOKEN" -D"license.skip=true" --no-transfer-progress -D"sonar.scanner.skipJreProvisioning=true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}