Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev ops #38

Merged
merged 40 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4656124
Create dotnet.yml
benpollarduk Oct 2, 2023
a05ff82
Update dotnet.yml
benpollarduk Oct 2, 2023
b593dbd
Merge branch 'main' into dev-ops
Dec 21, 2023
fb77752
Updated ci pipeline
Dec 21, 2023
6dbf4a4
Updated workflow
Dec 21, 2023
e10e394
Updated workflow
Dec 21, 2023
1cb97ba
Updated workflow
Dec 21, 2023
5abcd63
Fixed issues with folder structure
Dec 21, 2023
6032fa1
Updated project types
Dec 21, 2023
c0ee090
Changed target .net
Dec 21, 2023
594830c
Targeted .net 8.0
Dec 21, 2023
e16b541
Updated test result path
Dec 21, 2023
f5405ce
Updated workflow
Dec 21, 2023
01ede77
Updated workflow
Dec 21, 2023
c192590
Fixed issue
Dec 21, 2023
de4ebc8
Workflow changes
Dec 21, 2023
8bf4caa
Update main-ci.yml
benpollarduk Dec 21, 2023
0720d9b
Update main-ci.yml
benpollarduk Dec 21, 2023
a88547c
Update main-ci.yml
benpollarduk Dec 21, 2023
016c906
Update main-ci.yml
benpollarduk Dec 21, 2023
456a19c
Update main-ci.yml
benpollarduk Dec 21, 2023
02ff60d
Update main-ci.yml
benpollarduk Dec 21, 2023
bcaf4fb
Update main-ci.yml
benpollarduk Dec 21, 2023
40be268
Update BP.AdventureFramework.Tests.csproj
benpollarduk Dec 21, 2023
d02e8d4
Update main-ci.yml
benpollarduk Dec 21, 2023
cc5eb0b
Update main-ci.yml
benpollarduk Dec 21, 2023
c22bbf2
Update main-ci.yml
benpollarduk Dec 21, 2023
0d78f0b
Update main-ci.yml
benpollarduk Dec 21, 2023
419a462
Update BP.AdventureFramework.Tests.csproj
benpollarduk Dec 21, 2023
bed89ac
Update main-ci.yml
benpollarduk Dec 21, 2023
dad48e3
Update main-ci.yml
benpollarduk Dec 21, 2023
4167d8e
Update main-ci.yml
benpollarduk Dec 21, 2023
8bc0950
Update main-ci.yml
benpollarduk Dec 21, 2023
9b2d4a0
Update main-ci.yml
benpollarduk Dec 21, 2023
3a9759e
Update main-ci.yml
benpollarduk Dec 21, 2023
98593d5
Update main-ci.yml
benpollarduk Dec 21, 2023
5b8f9e3
Update main-ci.yml
benpollarduk Dec 21, 2023
6c5a532
Update main-ci.yml
benpollarduk Dec 21, 2023
1d0ca72
Added coverlet nuget
Dec 21, 2023
f3e2514
Update README.md
benpollarduk Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
47 changes: 47 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# main ci workflow is to ensure the codebase builds.
# all unit tests must pass for the workflow to complete successfully.

name: main-ci

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 7 * * *"
workflow_dispatch:

permissions:
contents: read

env:
DOTNET_VERSION: '8.0'

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup environment
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build

- name: Run tests with coverlet
run: dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\BP.AdventureFramework\BP.AdventureFramework.csproj" />
</ItemGroup>

</Project>
23 changes: 23 additions & 0 deletions BP.AdventureFramework.Tests/BP.AdventureFramework.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="2.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.1" />
<PackageReference Include="coverlet.collector" Version="1.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BP.AdventureFramework\BP.AdventureFramework.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BP.AdventureFramework", "BP.AdventureFramework\BP.AdventureFramework.csproj", "{D0A9B7D8-4E26-49EF-93F6-648E5CC38C97}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BP.AdventureFramework.Tests", "BP.AdventureFramework.Tests\BP.AdventureFramework.Tests.csproj", "{94FE323D-B885-43DA-8411-593244D0A370}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BP.AdventureFramework.Tests", "BP.AdventureFramework.Tests\BP.AdventureFramework.Tests.csproj", "{81CF1F6C-FB27-44AC-BFAF-A999E959D877}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BP.AdventureFramework.Examples", "BP.AdventureFramework.Examples\BP.AdventureFramework.Examples.csproj", "{BC0652A7-6EC4-480D-B98D-919D461FB518}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9ACF563F-3AE6-4C57-A912-1103B6E07C9F}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BP.AdventureFramework.Examples", "BP.AdventureFramework.Examples\BP.AdventureFramework.Examples.csproj", "{8E594A3E-DDA6-40D6-922F-8B8E8D306FD0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -24,14 +19,14 @@ Global
{D0A9B7D8-4E26-49EF-93F6-648E5CC38C97}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0A9B7D8-4E26-49EF-93F6-648E5CC38C97}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0A9B7D8-4E26-49EF-93F6-648E5CC38C97}.Release|Any CPU.Build.0 = Release|Any CPU
{94FE323D-B885-43DA-8411-593244D0A370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{94FE323D-B885-43DA-8411-593244D0A370}.Debug|Any CPU.Build.0 = Debug|Any CPU
{94FE323D-B885-43DA-8411-593244D0A370}.Release|Any CPU.ActiveCfg = Release|Any CPU
{94FE323D-B885-43DA-8411-593244D0A370}.Release|Any CPU.Build.0 = Release|Any CPU
{BC0652A7-6EC4-480D-B98D-919D461FB518}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC0652A7-6EC4-480D-B98D-919D461FB518}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC0652A7-6EC4-480D-B98D-919D461FB518}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC0652A7-6EC4-480D-B98D-919D461FB518}.Release|Any CPU.Build.0 = Release|Any CPU
{81CF1F6C-FB27-44AC-BFAF-A999E959D877}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{81CF1F6C-FB27-44AC-BFAF-A999E959D877}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81CF1F6C-FB27-44AC-BFAF-A999E959D877}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81CF1F6C-FB27-44AC-BFAF-A999E959D877}.Release|Any CPU.Build.0 = Release|Any CPU
{8E594A3E-DDA6-40D6-922F-8B8E8D306FD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E594A3E-DDA6-40D6-922F-8B8E8D306FD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E594A3E-DDA6-40D6-922F-8B8E8D306FD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E594A3E-DDA6-40D6-922F-8B8E8D306FD0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

This file was deleted.

This file was deleted.

Loading