forked from loafle/openapi-generator-original
* Bump actions/setup-dotnet from 4.3.1 to 5.0.0 Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 4.3.1 to 5.0.0. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v4.3.1...v5.0.0) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * trigger c# build workflow * Revert "trigger c# build workflow" This reverts commit cb0ea32e98d4bf6a5847afadf2603d552a8156e3. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Cheng <wing328hk@gmail.com>
34 lines
938 B
YAML
34 lines
938 B
YAML
name: Samples C# .Net 8 Client Echo API
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/echo_api/csharp/restsharp/net8/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/echo_api/csharp/restsharp/net8/**
|
|
jobs:
|
|
build:
|
|
name: Build .Net clients
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-dotnet@v5.0.0
|
|
with:
|
|
dotnet-version: '8.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
|