Skip to content

Bug fix: KAT-alogus parameter is now organization member instead of organization code #1310

Bug fix: KAT-alogus parameter is now organization member instead of organization code

Bug fix: KAT-alogus parameter is now organization member instead of organization code #1310

Workflow file for this run

name: SonarCloud
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
jobs:
octopoes-tests:
uses: minvws/nl-kat-coordination/.github/workflows/octopoes-tests.yml@main
bytes-tests:
uses: minvws/nl-kat-coordination/.github/workflows/bytes-tests.yml@main
mula-tests:
uses: minvws/nl-kat-coordination/.github/workflows/mula-tests.yml@main
rocky-tests:
uses: minvws/nl-kat-coordination/.github/workflows/rocky-tests.yml@main
boefjes-tests:
uses: minvws/nl-kat-coordination/.github/workflows/boefjes-tests.yml@main
fix-coverage-reports:
runs-on: ubuntu-latest
needs:
- octopoes-tests
- mula-tests
- bytes-tests
- rocky-tests
- boefjes-tests
strategy:
matrix:
module:
- name: octopoes
prefix_path: "."
- name: mula
prefix_path: "mula/scheduler/"
- name: bytes
prefix_path: "bytes/"
- name: rocky
prefix_path: "rocky/"
- name: boefjes
prefix_path: "boefjes/"
steps:
- name: Checkout coverage file fix script
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: .github/scripts/coverage_file_fixer.py
- name: Download coverage file
uses: actions/download-artifact@v4
with:
name: ${{ matrix.module['name'] }}-coverage-unit
path: ${{ matrix.module['name'] }}-coverage-unit
- name: Fix coverage report sources
uses: Mudlet/xmlstarlet-action@master
with:
args: edit --inplace --update "coverage/sources" --value "/github/workspace/${{ matrix.module['name'] }}/" "${{ matrix.module['name'] }}-coverage-unit/coverage.xml"
- name: Fix coverage file
run: python "${{ github.workspace }}/.github/scripts/coverage_file_fixer.py" "${{ matrix.module['name'] }}-coverage-unit/coverage.xml" "${{ matrix.module['prefix_path'] }}"
- name: Upload fixed coverage file
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.module['name'] }}-coverage-unit-fixed"
path: "${{ matrix.module['name'] }}-coverage-unit/coverage.xml"
sonar-cloud:
runs-on: ubuntu-latest
needs:
- fix-coverage-reports
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: "*-coverage-unit-fixed"
- name: SonarCloud
uses: SonarSource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}