Skip to content

Commit 8d9b8e7

Browse files
committed
Initial CI
1 parent 2b5de72 commit 8d9b8e7

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: .NET
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup .NET SDK
12+
uses: actions/setup-dotnet@v1
13+
with:
14+
dotnet-version: |
15+
8.0.x
16+
9.0.x
17+
- name: Install dependencies
18+
run: dotnet restore
19+
- name: Build
20+
run: dotnet build --configuration Release --no-restore
21+
- name: Test Zapto.AspNetCore.NetFx
22+
run: dotnet test --no-restore --verbosity normal tests/Zapto.AspNetCore.NetFx.Tests/Zapto.AspNetCore.NetFx.Tests.csproj
23+
- name: Publish
24+
uses: GerardSmit/[email protected]
25+
if: github.ref == 'refs/heads/main'
26+
with:
27+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
28+
VERSION_FILE_PATH: src/Directory.Build.props
29+
PROJECT_FILE_PATH: |
30+
src/Zapto.AspNetCore.NetFx/Zapto.AspNetCore.NetFx.csproj

src/Directory.Build.props

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<Version>1.0.0-alpha.1</Version>
5+
<PackageVersion>1.0.0-alpha.1</PackageVersion>
6+
<Authors>Zapto</Authors>
7+
<RepositoryUrl>https://github.com/zapto-dev/AspNetCore</RepositoryUrl>
8+
<Copyright>Copyright © 2025 Zapto</Copyright>
9+
<PackageTags>zapto, aspnetcore</PackageTags>
10+
<PackageProjectUrl>https://github.com/zapto-dev/AspNetCore</PackageProjectUrl>
11+
<PackageLicenseUrl>https://github.com/zapto-dev/AspNetCore/blob/main/LICENSE</PackageLicenseUrl>
12+
</PropertyGroup>
13+
14+
<PropertyGroup>
15+
<ExtensionVersion>8.0.0</ExtensionVersion>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
19+
<ExtensionVersion>9.0.0</ExtensionVersion>
20+
</PropertyGroup>
21+
22+
</Project>

0 commit comments

Comments
 (0)