mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-20 05:07:06 +00:00
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.2.0 to 4.0.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v3.2.0...v4.0.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
55 lines
2.4 KiB
YAML
55 lines
2.4 KiB
YAML
name: Samples C# .Net 7
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
|
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
|
jobs:
|
|
build:
|
|
name: Build .Net projects
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
|
- samples/server/petstore/aspnetcore-6.0
|
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4.0.0
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
- name: Build
|
|
working-directory: ${{ matrix.sample }}
|
|
run: dotnet build Org.OpenAPITools.sln
|
|
- name: Test
|
|
working-directory: ${{ matrix.sample }}
|
|
run: dotnet test Org.OpenAPITools.sln
|