Merge branch 'main' into develop

This commit is contained in:
James Cole 2023-05-29 11:58:39 +02:00
commit 0f008b9b1e
4 changed files with 41 additions and 1 deletions

View File

@ -57,6 +57,8 @@ jobs:
const workflows = [
'cleanup.yml',
'depsreview.yaml',
'qodana.yml',
'closed-issues.yml',
'laravel.yml',
'lock.yml',
'stale.yml'

View File

@ -32,6 +32,6 @@ jobs:
php artisan ide-helper:generate;
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
uses: JetBrains/qodana-action@v2023.1.0
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

21
.github/workflows/sonarcloud.yaml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Sonarcloud
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PERSONAL_ACCESS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

17
sonar-project.properties Normal file
View File

@ -0,0 +1,17 @@
sonar.projectKey=firefly-iii_firefly-iii
sonar.organization=firefly-iii
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=firefly-iii
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.projectVersion=6.0.11
sonar.sources=app,bootstrap,database,resources/assets,resources/views,routes,tests
sonar.sourceEncoding=UTF-8