mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Don't allow overlap in sonar cube file classification
Test files were getting analyzed twice, which the tool does not like, and causes it to exit with a fatal error. Also make the workflow run in PRs anytime the file is edited, so that we can get immediate feedback without waiting till the next day.
This commit is contained in:
parent
0d98bba167
commit
beb8c48f26
Notes:
sideshowbarker
2024-07-18 05:02:28 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/beb8c48f26c Pull-request: https://github.com/SerenityOS/serenity/pull/9699
1 changed files with 7 additions and 3 deletions
|
@ -1,9 +1,13 @@
|
|||
name: Sonar Cloud Static Analysis
|
||||
on:
|
||||
# Automatically run at the end of every day.
|
||||
schedule:
|
||||
# At the end of every day
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
# Run if this file is changed in a pull request (to get immediate feedback).
|
||||
pull_request:
|
||||
paths: [".github/workflows/sonar-cloud-static-analysis.yml"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Static Analysis
|
||||
|
@ -52,8 +56,8 @@ jobs:
|
|||
echo "sonar.cfamily.compile-commands=${{ github.workspace }}/Build/compile_commands.json" >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.cfamily.threads=2" >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.host.url=${{ env.SONAR_SERVER_URL }}" >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.sources=." >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.tests=${{ github.workspace }}/Tests,${{ github.workspace }}/Base/res,${{ github.workspace }}/Base/www" >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.sources=AK,Build,Userland,Kernel,Meta" >> ${{ github.workspace }}/sonar-project.properties
|
||||
echo "sonar.tests=Tests" >> ${{ github.workspace }}/sonar-project.properties
|
||||
|
||||
# === OS SETUP ===
|
||||
# TODO: Is there someway to share these steps with the cmake.yml?
|
||||
|
|
Loading…
Reference in a new issue