mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-29 01:08:49 +00:00
patch: sonarqube (#2)
* sonarqube * sonarqube --------- Co-authored-by: sdine <sdine@sdine.com>
This commit is contained in:
@@ -9,6 +9,48 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
sonarqube:
|
||||||
|
name: SonarQube Cloud scan
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Compute Sonar project key
|
||||||
|
run: echo "SONAR_PROJECT_KEY=${GITHUB_REPOSITORY/\//_}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Install scan prerequisites
|
||||||
|
run: >
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo apt-get install -y
|
||||||
|
cmake
|
||||||
|
ninja-build
|
||||||
|
pkg-config
|
||||||
|
libgtk-3-dev
|
||||||
|
libwxgtk3.2-dev
|
||||||
|
|
||||||
|
- name: Generate compile commands
|
||||||
|
run: >
|
||||||
|
cmake -S . -B build -G Ninja
|
||||||
|
-DCCM_BUILD_TESTS=OFF
|
||||||
|
-DCCM_USE_SYSTEM_WX=ON
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
|
|
||||||
|
- name: SonarQube Cloud scan
|
||||||
|
uses: SonarSource/sonarqube-scan-action@v5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
with:
|
||||||
|
args: >
|
||||||
|
-Dsonar.host.url=https://sonarcloud.io
|
||||||
|
-Dsonar.organization=${{ github.repository_owner }}
|
||||||
|
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
|
||||||
|
-Dsonar.sources=core,ui_wx,app
|
||||||
|
-Dsonar.cfamily.compile-commands=build/compile_commands.json
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
name: Linux build + tests
|
name: Linux build + tests
|
||||||
uses: ./.github/workflows/feature-linux.yml
|
uses: ./.github/workflows/feature-linux.yml
|
||||||
|
|||||||
@@ -11,6 +11,49 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
sonarqube:
|
||||||
|
name: SonarQube Cloud scan
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Compute Sonar project key
|
||||||
|
run: echo "SONAR_PROJECT_KEY=${GITHUB_REPOSITORY/\//_}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Install scan prerequisites
|
||||||
|
run: >
|
||||||
|
sudo apt-get update &&
|
||||||
|
sudo apt-get install -y
|
||||||
|
cmake
|
||||||
|
ninja-build
|
||||||
|
pkg-config
|
||||||
|
libgtk-3-dev
|
||||||
|
libwxgtk3.2-dev
|
||||||
|
|
||||||
|
- name: Generate compile commands
|
||||||
|
run: >
|
||||||
|
cmake -S . -B build -G Ninja
|
||||||
|
-DCCM_BUILD_TESTS=OFF
|
||||||
|
-DCCM_USE_SYSTEM_WX=ON
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
|
|
||||||
|
- name: SonarQube Cloud scan
|
||||||
|
uses: SonarSource/sonarqube-scan-action@v5
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
with:
|
||||||
|
args: >
|
||||||
|
-Dsonar.host.url=https://sonarcloud.io
|
||||||
|
-Dsonar.organization=${{ github.repository_owner }}
|
||||||
|
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
|
||||||
|
-Dsonar.sources=core,ui_wx,app
|
||||||
|
-Dsonar.cfamily.compile-commands=build/compile_commands.json
|
||||||
|
|
||||||
compute-version:
|
compute-version:
|
||||||
name: Determine semantic version
|
name: Determine semantic version
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
@@ -30,7 +73,9 @@ jobs:
|
|||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Windows build + tests
|
name: Windows build + tests
|
||||||
needs: compute-version
|
needs:
|
||||||
|
- sonarqube
|
||||||
|
- compute-version
|
||||||
uses: ./.github/workflows/master-windows.yml
|
uses: ./.github/workflows/master-windows.yml
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.compute-version.outputs.version }}
|
version: ${{ needs.compute-version.outputs.version }}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Card Collection Manager 3
|
# Card Collection Manager 3
|
||||||
|
|
||||||
|
[](https://sonarcloud.io/summary/new_code?id=sebastiandine_Card-Collection-Manager-3)
|
||||||
|
|
||||||
Card Collection Manager 3 is an extensible desktop application for managing trading card game collections. It is designed as a practical way to track cards and manage per-card images for large collections, with local per-game data, set synchronization workflows, and a desktop-first UX. The app preserves the established JSON layout from earlier CCM versions so existing collections stay compatible.
|
Card Collection Manager 3 is an extensible desktop application for managing trading card game collections. It is designed as a practical way to track cards and manage per-card images for large collections, with local per-game data, set synchronization workflows, and a desktop-first UX. The app preserves the established JSON layout from earlier CCM versions so existing collections stay compatible.
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|||||||
Reference in New Issue
Block a user