Skip to content

Commit

Permalink
Configure global.json (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Oct 12, 2024
1 parent 5dc6ea5 commit 6122518
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ jobs:
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@51f68377c181a79065c61bd492bd49be4575c439 # v1.7.2
with:
dotnet-version: "6.0.x"
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install dependencies
run: dotnet restore
Expand All @@ -31,7 +27,7 @@ jobs:
run: dotnet build -c Release --no-restore

- name: Test
run: dotnet test --no-restore -v normal -c Release -r test-results -l trx
run: dotnet test --no-restore -v normal -c Release --results-directory test-results -l trx

- name: Upload Test Results
uses: actions/upload-artifact@58740802ef971a2d71eff71e63d48ab68d1f5507 # v2.1.4
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@51f68377c181a79065c61bd492bd49be4575c439 # v1.7.2
with:
dotnet-version: "6.0.x"

- name: Install dependencies
run: dotnet restore
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "8.0.403",
"rollForward": "latestPatch",
"allowPrerelease": false
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>10.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit 6122518

Please sign in to comment.