mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-17 07:29:05 +00:00
* migrate tests from appveyor to github workflow
* test with dotnet 7
* test on windows
* set dotnet version
* Revert "set dotnet version"
This reverts commit 87af6a63ad.
* use localhost
* update
* update
* update tets
* update
* remove appveyor
55 lines
2.6 KiB
YAML
55 lines
2.6 KiB
YAML
name: Samples C# .Net 7 Client
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
# the .NET Core 3.0 runtime is no longer supported as it reached its end-of-life on March 3, 2020
|
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
|
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
|
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
|
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
|
|
pull_request:
|
|
paths:
|
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
|
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
|
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
|
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
|
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
|
|
jobs:
|
|
build:
|
|
name: Build clients
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
#- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/
|
|
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/
|
|
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/
|
|
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/
|
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
|
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/
|
|
- samples/client/petstore/csharp/restsharp/net8/Petstore/
|
|
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/
|
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-dotnet@v5.0.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
|