Skip to content

Commit 3f26020

Browse files
Merge pull request #1 from nullinside-development-group/feature/PrTests
Adding PR Checks
2 parents a13282d + 61e9bb2 commit 3f26020

File tree

6 files changed

+22
-55
lines changed

6 files changed

+22
-55
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
dotnet-version: 8.x.x
3838

3939
# Execute the build
40-
- name: Execute Build
40+
- name: Execute Release Build
4141
working-directory: ./src
4242
run: dotnet build --configuration Release
4343
test:
@@ -57,7 +57,7 @@ jobs:
5757
dotnet-version: 8.x.x
5858

5959
# Execute the tests
60-
- name: Execute Build
60+
- name: Execute Tests
6161
working-directory: ./src
6262
run: dotnet test
6363

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
66
ARG BUILD_CONFIGURATION=Release
77
WORKDIR /src
88
COPY ["Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj", "Nullinside.Cicd.GitHub/"]
9-
RUN dotnet restore "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj"
9+
RUN dotnet restore "src/Nullinside.Cicd.GitHub.csproj"
1010
COPY . .
11-
WORKDIR "/src/Nullinside.Cicd.GitHub"
11+
WORKDIR "/src/src"
1212
RUN dotnet build "Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/build
1313

1414
FROM build AS publish

src/.dockerignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/Nullinside.Cicd.GitHub.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nullinside.Cicd.GitHub", "Nullinside.Cicd.GitHub\Nullinside.Cicd.GitHub.csproj", "{94D9EEEF-B6C7-46AE-AB78-562D42E719A2}"
44
EndProject
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{1313AB57-DA3E-4D64-B432-AC665349F97B}"
6+
ProjectSection(SolutionItems) = preProject
7+
..\.github\workflows\codeql.yml = ..\.github\workflows\codeql.yml
8+
..\.gitignore = ..\.gitignore
9+
..\Dockerfile = ..\Dockerfile
10+
..\go.sh = ..\go.sh
11+
..\Jenkinsfile = ..\Jenkinsfile
12+
..\README.md = ..\README.md
13+
EndProjectSection
14+
EndProject
515
Global
616
GlobalSection(SolutionConfigurationPlatforms) = preSolution
717
Debug|Any CPU = Debug|Any CPU

src/Nullinside.Cicd.GitHub/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
99
</PropertyGroup>
1010

11-
<ItemGroup>
12-
<Content Include="..\.dockerignore">
13-
<Link>.dockerignore</Link>
14-
</Content>
15-
</ItemGroup>
11+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
12+
<DocumentationFile>bin\Debug\Nullinside.Cicd.GitHub.xml</DocumentationFile>
13+
</PropertyGroup>
14+
15+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
16+
<DocumentationFile>bin\Release\Nullinside.Cicd.GitHub.xml</DocumentationFile>
17+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
18+
</PropertyGroup>
1619

1720
</Project>

0 commit comments

Comments
 (0)