Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@ jobs:
registry-user: ${{ secrets.REGISTRY_USER }}
registry-token: ${{ secrets.REGISTRY_TOKEN }}

sonar:
needs: tests
uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@main
with:
project-key: ${{ vars.SONAR_PROJECT_KEY }}
Comment thread
PANiXiDA marked this conversation as resolved.
secrets:
sonar-token: ${{ secrets.SONAR_TOKEN }}
Comment thread
PANiXiDA marked this conversation as resolved.
registry-user: ${{ secrets.REGISTRY_USER }}
registry-token: ${{ secrets.REGISTRY_TOKEN }}

publish:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- format
- tests
- sonar
uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-publish-global-nuget.yml@main
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
Expand Down
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ Before considering work complete, run:
- `dotnet build --configuration Release`
- `dotnet test --configuration Release`

## Continuous integration

- SonarQube analysis is mandatory for every pull request and push to `main`.
- The `sonar` job must run after tests, and `publish` must depend on the
successful SonarQube Quality Gate.
- Do not make SonarQube conditional or allow its failures to be ignored.

## Packaging and versioning

- Package metadata must stay complete and consistent.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ dotnet test --configuration Release
dotnet pack --configuration Release
```

### Continuous integration

Every pull request and push to `main` runs formatting, tests, and mandatory
SonarQube analysis. Publishing from `main` starts only after the SonarQube
Quality Gate succeeds.

## Tooling

This repository uses:
Expand Down