Skip to content

Commit a3f2840

Browse files
authored
build: add reference to GitSnapshotter (#98)
* build: add reference to GitSnapshotter * build: add global.json * ci: install dotnet 9 in pipeline * build: add rollForward * ci: add nuget source * ci: update pipeline * asd * asd
1 parent 80bff09 commit a3f2840

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/test-pr.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ jobs:
9090
name: Test nuke
9191
runs-on: ubuntu-latest
9292
steps:
93-
- uses: actions/checkout@v3
93+
- uses: actions/checkout@v4
9494
with:
9595
fetch-depth: 0
96-
- uses: actions/setup-dotnet@v3
96+
- uses: actions/setup-dotnet@v4
9797
with:
98-
dotnet-version: "8.x.x"
98+
dotnet-version: "9.x.x"
9999
- name: "Cache: .nuke/temp, ~/.nuget/packages"
100100
uses: actions/cache@v3
101101
with:
@@ -104,6 +104,13 @@ jobs:
104104
~/.nuget/packages
105105
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
106106
- run: git switch -c test-branch
107-
- run: dotnet restore
107+
- run: |
108+
dotnet nuget add source \
109+
https://nuget.pkg.github.com/BusHero/index.json \
110+
--name github \
111+
--username BusHero \
112+
--password ${{ secrets.GITHUB_TOKEN }} \
113+
--store-password-in-clear-text
114+
dotnet restore
108115
- run: dotnet build --no-restore
109116
- run: dotnet test --no-build --no-restore

build.test/build.test.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -14,6 +14,7 @@
1414
<PackageReference Include="Autofixture.xunit2" Version="4.18.0" />
1515
<PackageReference Include="CLIWrap" Version="3.6.4" />
1616
<PackageReference Include="FluentAssertions" Version="6.12.0" />
17+
<PackageReference Include="GitSnapshotter" Version="0.0.4" />
1718
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
1819
<PackageReference Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="21.1.7" />
1920
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.1.7" />

build/_build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace></RootNamespace>
77
<NoWarn>CS0649;CS0169</NoWarn>
88
<ImplicitUsings>enable</ImplicitUsings>

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.102",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)