-
-
Notifications
You must be signed in to change notification settings - Fork 38
83 lines (77 loc) · 2.26 KB
/
smoke-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Smoke Tests
on:
workflow_dispatch:
push:
paths-ignore:
- "**/*"
- '!src/Refitter/**/*.cs'
- '!src/Refitter.Core/**/*.cs'
- '!src/Refitter.SourceGenerator/**/*.cs'
- '!src/Refitter/**/*.csproj'
- '!src/Refitter.Core/**/*.csproj'
- '!src/Refitter.SourceGenerator/**/*.csproj'
- "!.github/workflows/template.yml"
- "!.github/workflows/template-url.yml"
- "!.github/workflows/smoke-tests.yml"
branches:
- "*"
pull_request:
paths-ignore:
- "**/*"
- '!src/Refitter/**/*.cs'
- '!src/Refitter.Core/**/*.cs'
- '!src/Refitter.SourceGenerator/**/*.cs'
- '!src/Refitter/**/*.csproj'
- '!src/Refitter.Core/**/*.csproj'
- '!src/Refitter.SourceGenerator/**/*.csproj'
- "!.github/workflows/template.yml"
- "!.github/workflows/template-url.yml"
- "!.github/workflows/smoke-tests.yml"
branches:
- "*"
jobs:
file:
strategy:
fail-fast: false
matrix:
framework: [net8.0]
format: [json, yaml]
version: [v2.0, v3.0]
os: [ubuntu-latest]
openapi: [
"api-with-examples",
"callback-example",
"link-example",
"uber",
"uspto",
"petstore",
"petstore-expanded",
"petstore-minimal",
"petstore-simple",
"petstore-with-external-docs",
"hubspot-events",
"hubspot-webhooks",
"bot.paths"
]
uses: ./.github/workflows/template.yml
with:
format: ${{ matrix.format }}
version: ${{ matrix.version }}
openapi: ${{ matrix.openapi }}
os: ${{ matrix.os }}
command: dotnet run --project ../src/Refitter/Refitter.csproj --framework ${{ matrix.framework }}
url:
strategy:
fail-fast: false
matrix:
framework: [net8.0]
os: [ubuntu-latest]
openapi_url: [
"https://petstore3.swagger.io/api/v3/openapi.json",
"https://petstore3.swagger.io/api/v3/openapi.yaml"
]
uses: ./.github/workflows/template-url.yml
with:
os: ${{ matrix.os }}
openapi: ${{ matrix.openapi_url }}
command: dotnet run --project ../src/Refitter/Refitter.csproj --framework ${{ matrix.framework }}