Skip to content

Commit d0848b2

Browse files
committed
Initial commit
0 parents  commit d0848b2

28 files changed

+2571
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: NuGet Publish
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
paths:
7+
- '**.cs'
8+
- '**.csproj'
9+
- '.github/workflows/nuget-publish.yml'
10+
release:
11+
types: [ published ]
12+
workflow_dispatch:
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup .NET SDK
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: |
26+
9.0.x
27+
10.0.x
28+
29+
- name: Install Kiota CLI
30+
run: dotnet tool install -g Microsoft.OpenApi.Kiota
31+
32+
- name: Restore dependencies
33+
run: dotnet restore
34+
35+
- name: Build solution
36+
run: dotnet build --configuration Release --no-restore
37+
38+
- name: Run tests
39+
run: dotnet test --configuration Release --no-build --verbosity normal
40+
41+
- name: Pack NuGet package
42+
run: dotnet pack Scalar.Kiota.Extension/Scalar.Kiota.Extension.csproj --configuration Release --no-build --output ./nupkg -p:GeneratePackageOnBuild=false
43+
44+
- name: Publish packages to NuGet.org
45+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
46+
run: |
47+
dotnet nuget push ./nupkg/*.nupkg \
48+
--api-key ${{ secrets.NUGET_API_KEY }} \
49+
--source https://api.nuget.org/v3/index.json \
50+
--skip-duplicate

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET SDK
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: |
21+
9.0.x
22+
10.0.x
23+
24+
- name: Install Kiota CLI
25+
run: dotnet tool install -g Microsoft.OpenApi.Kiota
26+
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
30+
- name: Build
31+
run: dotnet build --no-restore --configuration Release
32+
33+
- name: Run tests
34+
run: dotnet test --no-build --configuration Release --verbosity normal

.gitignore

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
# Build results
2+
[Dd]ebug/
3+
[Dd]ebugPublic/
4+
[Rr]elease/
5+
[Rr]eleases/
6+
x64/
7+
x86/
8+
[Ww][Ii][Nn]32/
9+
[Aa][Rr][Mm]/
10+
[Aa][Rr][Mm]64/
11+
bld/
12+
[Bb]in/
13+
[Oo]bj/
14+
[Ll]og/
15+
[Ll]ogs/
16+
17+
# Visual Studio cache/options directory
18+
.vs/
19+
20+
# Rider
21+
.idea/
22+
*.sln.iml
23+
24+
# Visual Studio Code
25+
.vscode/
26+
*.code-workspace
27+
28+
# .NET
29+
project.lock.json
30+
project.fragment.lock.json
31+
artifacts/
32+
33+
# Tye
34+
.tye/
35+
36+
# ASP.NET Scaffolding
37+
ScaffoldingReadMe.txt
38+
39+
# StyleCop
40+
StyleCopReport.xml
41+
42+
# Files built by Visual Studio
43+
*_i.c
44+
*_p.c
45+
*_h.h
46+
*.ilk
47+
*.meta
48+
*.obj
49+
*.iobj
50+
*.pch
51+
*.pdb
52+
*.ipdb
53+
*.pgc
54+
*.pgd
55+
*.rsp
56+
*.sbr
57+
*.tlb
58+
*.tli
59+
*.tlh
60+
*.tmp
61+
*.tmp_proj
62+
*_wpftmp.csproj
63+
*.log
64+
*.tlog
65+
*.vspscc
66+
*.vssscc
67+
.builds
68+
*.pidb
69+
*.svclog
70+
*.scc
71+
72+
# Visual Studio profiler
73+
*.psess
74+
*.vsp
75+
*.vspx
76+
*.sap
77+
78+
# Visual Studio Trace Files
79+
*.e2e
80+
81+
# ReSharper
82+
_ReSharper*/
83+
*.[Rr]e[Ss]harper
84+
*.DotSettings.user
85+
86+
# Coverage
87+
*.coverage
88+
*.coveragexml
89+
coverage.cobertura.xml
90+
TestResults/
91+
.coverage/
92+
coveragereport/
93+
94+
# NCrunch
95+
_NCrunch_*
96+
.*crunch*.local.xml
97+
nCrunchTemp_*
98+
99+
# NuGet Packages
100+
*.nupkg
101+
*.snupkg
102+
# NuGet Symbol Packages
103+
*.symbols.nupkg
104+
# The packages folder can be ignored because of Package Restore
105+
**/[Pp]ackages/*
106+
# except build/, which is used as an MSBuild target.
107+
!**/[Pp]ackages/build/
108+
# Uncomment if necessary however generally it will be regenerated when needed
109+
#!**/[Pp]ackages/repositories.config
110+
# NuGet v3's project.json files produces more ignorable files
111+
*.nuget.props
112+
*.nuget.targets
113+
114+
# Visual Studio cache files
115+
# files ending in .cache can be ignored
116+
*.[Cc]ache
117+
# but keep track of directories ending in .cache
118+
!?*.[Cc]ache/
119+
120+
# Backup & report files from converting an old project file
121+
# to a newer Visual Studio version. Backup files are not needed,
122+
# because we have git ;-)
123+
_UpgradeReport_Files/
124+
Backup*/
125+
UpgradeLog*.XML
126+
UpgradeLog*.htm
127+
ServiceFabricBackup/
128+
*.rptproj.bak
129+
130+
# SQL Server files
131+
*.mdf
132+
*.ldf
133+
*.ndf
134+
135+
# Node.js
136+
node_modules/
137+
npm-debug.log*
138+
yarn-debug.log*
139+
yarn-error.log*
140+
package-lock.json
141+
yarn.lock
142+
143+
# TypeScript cache
144+
*.tsbuildinfo
145+
146+
# Files generated by the app
147+
wwwroot/.scalar-kiota/
148+
generated/
149+
.scalar-kiota/
150+
151+
# macOS
152+
.DS_Store
153+
.AppleDouble
154+
.LSOverride
155+
Icon
156+
._*
157+
.DocumentRevisions-V100
158+
.fseventsd
159+
.Spotlight-V100
160+
.TemporaryItems
161+
.Trashes
162+
.VolumeIcon.icns
163+
.com.apple.timemachine.donotpresent
164+
.AppleDB
165+
.AppleDesktop
166+
Network Trash Folder
167+
Temporary Items
168+
.apdisk
169+
170+
# Windows
171+
Thumbs.db
172+
Thumbs.db:encryptable
173+
ehthumbs.db
174+
ehthumbs_vista.db
175+
*.stackdump
176+
[Dd]esktop.ini
177+
$RECYCLE.BIN/
178+
*.cab
179+
*.msi
180+
*.msix
181+
*.msm
182+
*.msp
183+
*.lnk
184+
185+
# Temporary files
186+
*.temp
187+
*.swp
188+
*~
189+
190+
# User-specific files
191+
*.suo
192+
*.user
193+
*.userosscache
194+
*.sln.docstates
195+
196+
# Publish profiles
197+
*.pubxml
198+
*.publishproj
199+
PublishScripts/
200+
201+
# Azure
202+
*.azurePubxml
203+
204+
# Local History for Visual Studio
205+
.localhistory/
206+
207+
# BeatPulse healthcheck temp database
208+
healthchecksdb
209+
210+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
211+
MigrationBackup/
212+
213+
# Ionide (cross platform F# VS Code tools) working folder
214+
.ionide/
215+
216+
# Fody - auto-generated XML schema
217+
FodyWeavers.xsd
218+
219+
# Paket dependency manager
220+
.paket/
221+
paket-files/
222+
223+
# FAKE - F# Make
224+
.fake/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Alexander Nachtmann
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)