Feat/deleted user #117
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: {} | |
| jobs: | |
| build: | |
| name: "Build" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 | |
| with: | |
| dotnet-version: "9.0.x" | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| ~/.dotnet/tools | |
| ./PrismaDotnetApi/PrismaApi.Application/bin | |
| ./PrismaDotnetApi/PrismaApi.Domain/bin | |
| ./PrismaDotnetApi/PrismaApi.Infrastructure/bin | |
| ./PrismaDotnetApi/PrismaApi.Api/bin | |
| key: ${{ runner.os }}-dotnet-${{ hashFiles('**/PrismaDotnetApi*.csproj') }} | |
| - name: Restore NuGet packages | |
| run: dotnet restore PrismaDotnetApi/PrismaApi.sln | |
| - name: Build projects and their dependencies | |
| run: dotnet build --no-restore PrismaDotnetApi/PrismaApi.sln | |
| integration-tests: | |
| name: Integration tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| ~/.dotnet/tools | |
| ./PrismaDotnetApi/PrismaApi.Application/bin | |
| ./PrismaDotnetApi/PrismaApi.Domain/bin | |
| ./PrismaDotnetApi/PrismaApi.Infrastructure/bin | |
| ./PrismaDotnetApi/PrismaApi.Api/bin | |
| key: ${{ runner.os }}-dotnet-${{ hashFiles('**/PrismaDotnetApi*.csproj') }} | |
| - name: Restore NuGet packages | |
| run: dotnet restore PrismaDotnetApi/PrismaApi.sln | |
| - name: Run tests | |
| run: | | |
| dotnet build PrismaDotnetApi/PrismaApi.sln --configuration Release --no-restore | |
| dotnet test PrismaDotnetApi/PrismaApi.Test/PrismaApi.Test.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
| - name: Publish test results | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: TestResults | |
| path: ./PrismaDotnetApi/PrismaApi.Test/TestResults | |
| - name: ReportGenerator | |
| uses: danielpalme/ReportGenerator-GitHub-Action@c31aa4ed4f12f147061186cf2a029f307b5c3636 # 5.2.0 | |
| with: | |
| reports: ./PrismaDotnetApi/PrismaApi.Test/TestResults/**/*.cobertura.xml | |
| targetdir: coveragereport | |
| reporttypes: Html;MarkdownSummaryGithub | |
| - name: Upload coverage report artifact | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: CoverageReport | |
| path: coveragereport |