Skip to content

Commit 5810d30

Browse files
committed
Refurbished old build test and intentionally added a warning to build.
1 parent 64fc61b commit 5810d30

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Build Project
2-
#on: [workflow_dispatch, push, pull_request]
3-
on: [workflow_dispatch, pull_request]
2+
on: [push, workflow_dispatch, pull_request]
43
jobs:
54
build:
65
runs-on: windows-latest
@@ -10,20 +9,18 @@ jobs:
109
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
1110
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
1211
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup .NET Core
15-
uses: actions/setup-dotnet@v1
12+
- uses: actions/checkout@v4
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
1615
with:
17-
dotnet-version: 5.0.100-preview.6.20318.15
18-
- name: Show DOTNET_NOLOGO
19-
run: echo DOTNET_NOLOGO=$Env:DOTNET_NOLOGO
16+
dotnet-version: '8.0.x'
2017
- name: Restore
2118
run: dotnet restore
2219
- name: Build
2320
run: dotnet build --configuration Release --no-restore
2421
- name: Pack
2522
run: dotnet pack --configuration Release --no-build
26-
- uses: actions/upload-artifact@v2
23+
- uses: actions/upload-artifact@v4
2724
with:
2825
name: nuget-package
2926
path: GitHubActionsTest/bin/Release/*.nupkg
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
5-
<RepositoryUrl>https://github.com/PathogenPlayground/GitHubActionsTest.git</RepositoryUrl>
4+
<TargetFramework>net8</TargetFramework>
5+
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

88
</Project>

GitHubActionsTest/Test.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{
33
public class Test
44
{
5+
public object Field;
6+
57
public override string ToString()
68
=> "Hello, world!";
79
}

0 commit comments

Comments
 (0)