Skip to content

Commit

Permalink
Add test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Jan 13, 2024
1 parent 3d6971f commit 46f486f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build & Test Debug

on:
push:
branches: [ master ]
merge_group:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]

jobs:
build:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Master
uses: actions/[email protected]

- name: Install dependencies
run: dotnet restore

- name: Build Project
run: dotnet build --configuration Debug --no-restore /p:WarningsAsErrors=nullable /m

- name: Run Tests
run: dotnet test --no-build --configuration Debug
7 changes: 7 additions & 0 deletions SS14.Changelog.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SS14.Changelog", "SS14.Chan
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SS14.Changelog.Tests", "SS14.Changelog.Tests\SS14.Changelog.Tests.csproj", "{34759371-DAC7-41FC-A677-A457E7DF16DB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub", "GitHub", "{BFDEADF8-0737-41A5-99B9-E53D1FBF9093}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{A7D14556-4367-4729-8214-DF5931EF2ADC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -19,4 +23,7 @@ Global
{34759371-DAC7-41FC-A677-A457E7DF16DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34759371-DAC7-41FC-A677-A457E7DF16DB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A7D14556-4367-4729-8214-DF5931EF2ADC} = {BFDEADF8-0737-41A5-99B9-E53D1FBF9093}
EndGlobalSection
EndGlobal

0 comments on commit 46f486f

Please sign in to comment.