From f0c2b354e16f59e45e20eb3bd0fc0c397dd78bba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:16:10 +0000 Subject: [PATCH 1/4] Initial plan From d140dd47eea282c5f378adb7d2979753ad9aa4d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:17:59 +0000 Subject: [PATCH 2/4] Initial plan: Add CI build pipeline Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> --- test-output.log | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test-output.log diff --git a/test-output.log b/test-output.log new file mode 100644 index 0000000..1f78fbd --- /dev/null +++ b/test-output.log @@ -0,0 +1,17 @@ + Determining projects to restore... + All projects are up-to-date for restore. + TestProject -> /home/runner/work/TestProject/TestProject/src/TestProject/bin/Debug/net10.0/TestProject.dll + TestProject.Tests -> /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll +Test run for /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll (.NETCoreApp,Version=v10.0) +VSTest version 18.0.1 (x64) + +Starting test execution, please wait... +A total of 1 test files matched the specified pattern. +/home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll +Test Parallelization enabled for /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll (Workers: 4, Scope: MethodLevel) + Passed TestMethod1 [5 ms] + +Test Run Successful. +Total tests: 1 + Passed: 1 + Total time: 0.6277 Seconds From d7b091a22a9f913fda86cba321e0857c1fb188c8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:19:00 +0000 Subject: [PATCH 3/4] Add CI build pipeline with GitHub Actions Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + test-output.log | 17 ----------------- 3 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 test-output.log diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4e65ffa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +--- +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Restore dependencies + run: dotnet restore TestProject.slnx + + - name: Build + run: dotnet build TestProject.slnx --no-restore + + - name: Test + run: dotnet test TestProject.slnx --no-build --verbosity normal diff --git a/.gitignore b/.gitignore index 8f7b345..69c9a22 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ _ReSharper*/ # Test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* +*.log # .NET Core project.lock.json diff --git a/test-output.log b/test-output.log deleted file mode 100644 index 1f78fbd..0000000 --- a/test-output.log +++ /dev/null @@ -1,17 +0,0 @@ - Determining projects to restore... - All projects are up-to-date for restore. - TestProject -> /home/runner/work/TestProject/TestProject/src/TestProject/bin/Debug/net10.0/TestProject.dll - TestProject.Tests -> /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll -Test run for /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll (.NETCoreApp,Version=v10.0) -VSTest version 18.0.1 (x64) - -Starting test execution, please wait... -A total of 1 test files matched the specified pattern. -/home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll -Test Parallelization enabled for /home/runner/work/TestProject/TestProject/test/TestProject.Tests/bin/Debug/net10.0/TestProject.Tests.dll (Workers: 4, Scope: MethodLevel) - Passed TestMethod1 [5 ms] - -Test Run Successful. -Total tests: 1 - Passed: 1 - Total time: 0.6277 Seconds From 00d4e629a17e44cd3bd3080f565299e2662dad9a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:20:08 +0000 Subject: [PATCH 4/4] Add permissions block to CI workflow for security Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com> --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e65ffa..8ad01e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,8 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@v4