forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C#] test .net6 projects in Github actions (OpenAPITools#11544)
* test .net 6 in github workflow * trigger workflow * fix run * fix test * trigger build * update samples
- Loading branch information
Showing
2 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Samples C# .Net 6 | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'samples/client/petstore/csharp-netcore/**net6.0**/' | ||
pull_request: | ||
paths: | ||
- 'samples/client/petstore/csharp-netcore/**net6.0**/' | ||
jobs: | ||
build: | ||
name: Build .Net projects | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sample: | ||
# clients | ||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0 | ||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.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 |
This file contains 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