Skip to content

Commit

Permalink
Dev ops (#38)
Browse files Browse the repository at this point in the history
* Create dotnet.yml

* Update dotnet.yml

* Updated ci pipeline

* Updated workflow

* Updated workflow

* Updated workflow

* Fixed issues with folder structure

* Updated project types

* Changed target .net

* Targeted .net 8.0

* Updated test result path

* Updated workflow

* Updated workflow

* Fixed issue

* Workflow changes

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update BP.AdventureFramework.Tests.csproj

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update BP.AdventureFramework.Tests.csproj

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Update main-ci.yml

* Added coverlet nuget

* Update README.md

---------

Co-authored-by: Ben Pollard <[email protected]>
Co-authored-by: ben_pollard <[email protected]>
  • Loading branch information
3 people authored Dec 21, 2023
1 parent 876653b commit caf6047
Show file tree
Hide file tree
Showing 308 changed files with 93 additions and 391 deletions.
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>
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

This file was deleted.

This file was deleted.

Loading

0 comments on commit caf6047

Please sign in to comment.