diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index 7c0b28d..02c4fd2 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -50,7 +50,7 @@ stages: script: > dotnet test --configuration $(BuildConfiguration) - -- --filter-query "/[Category=UnitTests]" + -- --filter-query "/[(Category=UnitTests)]" env: AllowedOrigins__0: "5207" Features__IsScalarEnabled: true @@ -107,10 +107,7 @@ stages: inputs: command: "test" projects: "$(TestProjects)" - arguments: | - --configuration $(BuildConfiguration) - --report-xunit-trx --coverage --coverage-output-format cobertura - -- --filter-query "/[(Category=UnitTests)|(Mode=Readonly)]" + arguments: '--configuration $(BuildConfiguration) --report-xunit-trx --coverage --coverage-output-format cobertura -- --filter-query "/[(Category=UnitTests)|(Mode=Readonly)]"' env: AllowedOrigins__0: "5207" Features__IsScalarEnabled: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9486ad0..b827e19 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,13 +37,13 @@ jobs: markup-lint: name: Markup - uses: devpro/github-workflow-parts/.github/workflows/reusable-markup-lint.yml@5a5d1cd0a00c94ebec1e096e9086f2b88cc5eb96 + uses: devpro/github-workflow-parts/.github/workflows/reusable-markup-lint.yml@c90ba46a93ca90123f57744b47e49c1a73962cea code-quality: name: Code needs: git-check if: needs.git-check.outputs.app_changed == 'true' || (github.event_name == 'workflow_dispatch' && inputs.run-code-quality) - uses: devpro/github-workflow-parts/.github/workflows/reusable-dotnet-quality.yml@5a5d1cd0a00c94ebec1e096e9086f2b88cc5eb96 + uses: devpro/github-workflow-parts/.github/workflows/reusable-dotnet-quality.yml@c90ba46a93ca90123f57744b47e49c1a73962cea with: custom-commands: | ./scripts/mongodb-install.sh @@ -62,7 +62,7 @@ jobs: sonar-organization: ${{ vars.SONAR_ORG }} sonar-project-key: ${{ vars.SONAR_PROJECT_KEY }} sonar-project-name: Keeptrack - workflow-parts-version: 5a5d1cd0a00c94ebec1e096e9086f2b88cc5eb96 + workflow-parts-version: c90ba46a93ca90123f57744b47e49c1a73962cea secrets: fossa-api-key: ${{ secrets.FOSSA_API_KEY }} sonar-token: ${{ secrets.SONAR_TOKEN }} @@ -90,7 +90,7 @@ jobs: - name: "Web Api" image-name: "keeptrack-webapi" image-definition: "src/WebApi/Dockerfile" - uses: devpro/github-workflow-parts/.github/workflows/reusable-container-scan.yml@5a5d1cd0a00c94ebec1e096e9086f2b88cc5eb96 + uses: devpro/github-workflow-parts/.github/workflows/reusable-container-scan.yml@c90ba46a93ca90123f57744b47e49c1a73962cea with: image-definition: ${{ matrix.image-definition }} image-name: ${{ matrix.image-name }} diff --git a/.github/workflows/pkg.yaml b/.github/workflows/pkg.yaml index 1717233..82d0668 100644 --- a/.github/workflows/pkg.yaml +++ b/.github/workflows/pkg.yaml @@ -28,7 +28,7 @@ jobs: permissions: id-token: write contents: read - uses: devpro/github-workflow-parts/.github/workflows/reusable-container-publication.yml@5a5d1cd0a00c94ebec1e096e9086f2b88cc5eb96 + uses: devpro/github-workflow-parts/.github/workflows/reusable-container-publication.yml@c90ba46a93ca90123f57744b47e49c1a73962cea with: create-latest: ${{ github.ref_name == 'main' }} image-definition: ${{ matrix.image-definition }} diff --git a/.github/workflows/reusable-git-check.yml b/.github/workflows/reusable-git-check.yml index 6fb3d92..1993f7e 100644 --- a/.github/workflows/reusable-git-check.yml +++ b/.github/workflows/reusable-git-check.yml @@ -69,7 +69,7 @@ jobs: echo "No relevant changes" echo "app_changed=false" >> $GITHUB_OUTPUT else - echo "Changes detected in src/test" + echo "Changes detected in $APP_FOLDERS" git diff --name-status "$BEFORE" ${{ github.sha }} -- $APP_FOLDERS echo "app_changed=true" >> $GITHUB_OUTPUT fi @@ -87,4 +87,4 @@ jobs: echo "Major.Minor: $MAJOR_MINOR" echo "version_major_minor=$MAJOR_MINOR" >> "$GITHUB_OUTPUT" env: - APP_FOLDERS: ${{ inputs.app_folders }} + APP_FOLDERS: ${{ inputs.app-folders }} diff --git a/.yamllint.yaml b/.yamllint.yaml index ebf4450..4a88842 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -6,7 +6,7 @@ rules: document-start: disable line-length: level: warning - max: 170 + max: 200 truthy: disable brackets: max-spaces-inside: 1