diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9594eaf424..a7e1d97bc52 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -159,6 +159,14 @@ jobs: & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --install --qmerge owncloud/owncloud-client & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.sonar.ps1" --analyze + - name: Clazy + if: ${{ matrix.target == 'linux-64-gcc' }} + run: | + & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c clazy + $env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q owncloud-client) + git clone --depth=1 https://invent.kde.org/vonreth/clazy-report.git "${env:HOME}/craft/clazy-report" + & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 "${env:HOME}/craft/clazy-report/clazy-report.py" --src "${env:GITHUB_WORKSPACE}" --build "${env:BUILD_DIR}" + - name: Run tests run: | & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --test owncloud/owncloud-client @@ -185,6 +193,7 @@ jobs: Copy-Item "$env:HOME/craft/binaries/*" "${env:GITHUB_WORKSPACE}/binaries/" -ErrorAction SilentlyContinue & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --shelve "${env:GITHUB_WORKSPACE}/.craft.shelf" Copy-Item "${env:GITHUB_WORKSPACE}/.craft.shelf" "${env:GITHUB_WORKSPACE}/binaries/" + Copy-Item "${env:HOME}/craft/clazy-report/clazy-report.json" "${env:GITHUB_WORKSPACE}/binaries/" -ErrorAction SilentlyContinue - name: Upload artifacts uses: actions/upload-artifact@v4