From 077a737f51ae439aba4a5846a3449681bede97b5 Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:11:26 -0600 Subject: [PATCH 1/6] Set up GitHub Actions CI - Nachi --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64db9d16a..992a4f661 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'Run App , ' +name: 'Run App Nachi, Aidan' on: [push, pull_request] @@ -6,4 +6,12 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - run: echo "Hello, World!" + - uses: actions/checkout@v2 + - name: install dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - name: build + run: dotnet build + - name: run unit tests + run: dotnet test \ No newline at end of file From 5bed4c2098771ca3c52a5467567f0f3ef7802a9a Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:15:44 -0600 Subject: [PATCH 2/6] Trigger --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 992a4f661..9a7b40e65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,4 +14,5 @@ jobs: - name: build run: dotnet build - name: run unit tests - run: dotnet test \ No newline at end of file + run: dotnet test + \ No newline at end of file From db877c710c342edd0ea3bcab30aedd42f83ea9d8 Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:17:07 -0600 Subject: [PATCH 3/6] Trigger --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a7b40e65..992a4f661 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,5 +14,4 @@ jobs: - name: build run: dotnet build - name: run unit tests - run: dotnet test - \ No newline at end of file + run: dotnet test \ No newline at end of file From 62d06bbd913fa2236d9f10197af70bc1fc7583ca Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:32:32 -0600 Subject: [PATCH 4/6] Changed name --- .github/workflows/{ci.yml => run-app.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => run-app.yaml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/run-app.yaml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/run-app.yaml From 6a89baca27afbe64539114a5dd3c057748feb7ae Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:38:20 -0600 Subject: [PATCH 5/6] Implemented Power method - Nachi --- Console/Program.cs | 4 ++-- Tests/UnitTests.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Console/Program.cs b/Console/Program.cs index 56bb86061..7faee0600 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,8 +84,8 @@ public static double Divide(string x, string y) } // Implement this method following a similar pattern as above - public static double Power(string x, string y) + public static double Power(double baseNum, double exponent) { - return 0.0; + return Math.Pow(baseNum, exponent); } } diff --git a/Tests/UnitTests.cs b/Tests/UnitTests.cs index a2d3bd18e..e98ccd3ce 100644 --- a/Tests/UnitTests.cs +++ b/Tests/UnitTests.cs @@ -4,7 +4,7 @@ namespace GithubActionsLab; public class Addition { [TestMethod] - public void Add_Valid_Patino() + public void Add_Valid_Patino_Nachi() { Assert.AreEqual(3, Program.Add("1", "2")); Assert.AreEqual(5, Program.Add("3", "2")); @@ -12,7 +12,7 @@ public void Add_Valid_Patino() } [TestMethod] - public void Add_Invalid_Patino() + public void Add_Invalid_Patino_Nachi() { Assert.ThrowsException(() => Program.Add("1", "a")); Assert.ThrowsException(() => Program.Add("a", "1")); @@ -20,7 +20,7 @@ public void Add_Invalid_Patino() } [TestMethod] - public void Add_Null_Patino() + public void Add_Null_Patino_Nachi() { Assert.ThrowsException(() => Program.Add("1", null)); Assert.ThrowsException(() => Program.Add(null, "1")); From d983d357f4969fc915755163713d596c0190b7fa Mon Sep 17 00:00:00 2001 From: Aidan Nachi <159731962+aidannachi@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:39:08 -0600 Subject: [PATCH 6/6] Implemented Power method - Nachi --- Console/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Console/Program.cs b/Console/Program.cs index 7faee0600..c1a90c5eb 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,8 +84,8 @@ public static double Divide(string x, string y) } // Implement this method following a similar pattern as above - public static double Power(double baseNum, double exponent) + public static double Power(string baseNum, string exponent) { - return Math.Pow(baseNum, exponent); + return Math.Pow(double.Parse(baseNum), double.Parse(exponent)); } }