diff --git a/.codacy.yml b/.codacy.yml deleted file mode 100644 index 58d0874..0000000 --- a/.codacy.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Codacy configuration for excluding files and folders from analysis -# https://docs.codacy.com/repositories-configure/codacy-configuration-file/#ignore-files -# Uses Java glob syntax: https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob - -exclude_paths: - # Ignore all root-level metadata and documentation - - ".gitignore" - - ".runsettings" - - "LICENSE" - - "README.md" - - # Ignore all file types that shouldn't be analyzed - - "**.yml" - - "**.json" - - "**.png" - - "**.sln" - - "**.csproj" - - # Ignore generated or infrastructure files - - "**/*Program.cs" - - # Ignore specific folders across any depth in the project - - "**/Configurations/**" - - "**/Data/**" - - "**/Enums/**" - - "**/Extensions/**" - - "**/Mappings/**" - - "**/Middlewares/**" - - "**/Migrations/**" - - "**/Models/**" - - "**/Properties/**" - - "**/Repositories/**" - - "**/Utilities/**" - - "**/Validators/**" - - "test/**/*" - - "scripts/**/*" diff --git a/.github/workflows/dotnet-ci.yml b/.github/workflows/dotnet-ci.yml index ae74bdc..c5747de 100644 --- a/.github/workflows/dotnet-ci.yml +++ b/.github/workflows/dotnet-ci.yml @@ -81,9 +81,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - strategy: - matrix: - service: [codecov, codacy] steps: - name: Checkout repository uses: actions/checkout@v6.0.2 @@ -93,17 +90,9 @@ jobs: with: name: cobertura.xml - - name: Upload Cobertura coverage report to ${{ matrix.service }} - if: ${{ matrix.service == 'codecov' }} + - name: Upload Cobertura coverage report to Codecov uses: codecov/codecov-action@v5.5.2 with: token: ${{ secrets.CODECOV_TOKEN }} files: cobertura.xml use_oidc: false - - - name: Upload Cobertura coverage report to ${{ matrix.service }} - if: ${{ matrix.service == 'codacy' }} - uses: codacy/codacy-coverage-reporter-action@v1.3.0 - with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: cobertura.xml diff --git a/README.md b/README.md index 680ae43..f6481bb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ [![.NET CI](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/dotnet-ci.yml/badge.svg)](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/dotnet-ci.yml) [![.NET CD](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/dotnet-cd.yml/badge.svg)](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/dotnet-cd.yml) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanotaboada_Dotnet.Samples.AspNetCore.WebApi&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=nanotaboada_Dotnet.Samples.AspNetCore.WebApi) +[![CodeQL](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/actions/workflows/github-code-scanning/codeql) [![Build Status](https://dev.azure.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/_apis/build/status%2FDotnet.Samples.AspNetCore.WebApi?branchName=master)](https://dev.azure.com/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/_build/latest?definitionId=14&branchName=master) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanotaboada_Dotnet.Samples.AspNetCore.WebApi&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=nanotaboada_Dotnet.Samples.AspNetCore.WebApi) [![codecov](https://codecov.io/gh/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/graph/badge.svg?token=hgJc1rStJ9)](https://codecov.io/gh/nanotaboada/Dotnet.Samples.AspNetCore.WebApi) [![CodeFactor](https://www.codefactor.io/repository/github/nanotaboada/Dotnet.Samples.AspNetCore.WebApi/badge)](https://www.codefactor.io/repository/github/nanotaboada/Dotnet.Samples.AspNetCore.WebApi) [![License: MIT](https://img.shields.io/badge/License-MIT-white.svg)](https://opensource.org/licenses/MIT)