forked from loafle/openapi-generator-original
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 4.0.1 to 4.1.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v4.0.1...v4.1.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet 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>
34 lines
916 B
YAML
34 lines
916 B
YAML
name: Samples C# .Net 6 Client Echo API
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/echo_api/csharp-restsharp/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/echo_api/csharp-restsharp/**
|
|
jobs:
|
|
build:
|
|
name: Build .Net clients
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/echo_api/csharp-restsharp/
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4.1.0
|
|
with:
|
|
dotnet-version: '6.0.x'
|
|
- name: Run echo server
|
|
run: |
|
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
(cd http-echo-server && npm install && npm start &)
|
|
- name: Build
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
dotnet build Org.OpenAPITools.sln
|
|
dotnet test Org.OpenAPITools.sln
|