XCFA-refactor 2023 [draft] #576
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sonar analysis | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: sonar-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
run-sonar: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup java 17 | |
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Install LLVM and Clang | |
uses: ./.github/actions/install-llvm | |
with: | |
version: "15" | |
- name: Analyze | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
if: env.SONAR_TOKEN != '' | |
uses: gradle/gradle-build-action@40b6781dcdec2762ad36556682ac74e31030cfe2 # v2.5.1 | |
with: | |
arguments: build jacocoTestReport sonar --info -Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m |