mirror of
https://github.com/vector-im/element-ios.git
synced 2024-10-01 00:32:41 +00:00
31 lines
No EOL
1.1 KiB
YAML
31 lines
No EOL
1.1 KiB
YAML
name: SonarCloud analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [ "develop" ]
|
|
pull_request:
|
|
branches: [ "develop" ]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
|
|
|
|
jobs:
|
|
Analysis:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Analyze with SonarCloud
|
|
|
|
# You can pin the exact commit or the version.
|
|
uses: SonarSource/sonarcloud-github-action@de2e56b42aa84d0b1c5b622644ac17e505c9a049
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate the token on Sonarcloud.io, add it to the secrets of this repo
|
|
with:
|
|
# Additional arguments for the sonarcloud scanner
|
|
args:
|
|
-Dsonar.projectKey=vector-im_element-ios
|
|
-Dsonar.organization=new_vector_ltd_organization
|
|
-Dsonar.inclusions=RiotSwiftUI/**
|
|
# For more info about the parameters, please refer to https://docs.sonarcloud.io/advanced-setup/analysis-parameters/ |