forked from loafle/openapi-generator-original
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 5.0.1 to 5.1.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v5.0.1...v5.1.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-version: 5.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1009 B
YAML
38 lines
1009 B
YAML
name: Samples C# .Net Client (Petstore)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
|
|
jobs:
|
|
build:
|
|
name: Build clients
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
petstore-api:
|
|
image: swaggerapi/petstore
|
|
ports:
|
|
- 80:8080
|
|
env:
|
|
SWAGGER_HOST: http://petstore.swagger.io
|
|
SWAGGER_BASE_PATH: /v2
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-dotnet@v5.1.0
|
|
with:
|
|
dotnet-version: '7.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
|