Skip to content

Commit 65f9fbc

Browse files
committed
migrate tests from appveyor to github workflow
1 parent 0e1cba6 commit 65f9fbc

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Samples C# .Net 8 Client (from AppVeyor)
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
7+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
8+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
9+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
10+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
11+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
12+
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
13+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
14+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
15+
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
16+
pull_request:
17+
paths:
18+
- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/**
19+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/**
20+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/**
21+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/**
22+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/**
23+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/**
24+
- samples/client/petstore/csharp/restsharp/net8/Petstore/**
25+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/**
26+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/**
27+
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/**
28+
jobs:
29+
build:
30+
name: Build clients (migrated from AppVeyor)
31+
runs-on: ubuntu-latest
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
sample:
36+
- samples/client/petstore/csharp/httpclient/standard2.0/Petstore/
37+
- samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/
38+
- samples/client/petstore/csharp/restsharp/net4.7/Petstore/
39+
- samples/client/petstore/csharp/restsharp/net4.8/Petstore/
40+
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
41+
- samples/client/petstore/csharp/restsharp/net8/EnumMappings/
42+
- samples/client/petstore/csharp/restsharp/net8/Petstore/
43+
- samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/
44+
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
45+
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
46+
steps:
47+
- uses: actions/checkout@v5
48+
- uses: actions/[email protected]
49+
with:
50+
dotnet-version: '8.0.x'
51+
- name: Build
52+
working-directory: ${{ matrix.sample }}
53+
run: dotnet build Org.OpenAPITools.sln
54+
- name: Test
55+
working-directory: ${{ matrix.sample }}
56+
run: dotnet test Org.OpenAPITools.sln

samples/client/petstore/csharp/httpclient/standard2.0/Petstore/.openapi-generator-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
2424
src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj
25+
26+
27+

0 commit comments

Comments
 (0)