From 9534e708289f47922be2a6c9dc8d9f70e1f8087f Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jan 2025 16:17:03 -0800 Subject: [PATCH 1/6] Added new line to weather forecast model --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index 786b4a10..efe721f3 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -10,3 +10,4 @@ public record WeatherForecast public string? Summary { get; init; } } + From ced6fb5cbed58c14df603fba44bba1e45c4e9faa Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jan 2025 16:27:00 -0800 Subject: [PATCH 2/6] break the build --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index efe721f3..349e7ef8 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -11,3 +11,4 @@ public record WeatherForecast public string? Summary { get; init; } } +} \ No newline at end of file From e71fd341f0439eeaebc0957182ccc29885174529 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jan 2025 16:41:17 -0800 Subject: [PATCH 3/6] fixed the build --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index 349e7ef8..88d9fbb3 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -9,6 +9,4 @@ public record WeatherForecast public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string? Summary { get; init; } -} - } \ No newline at end of file From 00f51f66096d1874e81df68a3a73191ec067df9d Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jan 2025 16:49:48 -0800 Subject: [PATCH 4/6] change to action test --- .github/workflows/pr-verify.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index d7c568bc..3e3e71c8 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -19,4 +19,7 @@ jobs: dotnet-version: 8.0 - name: Build with dotnet - run: dotnet build --configuration Release \ No newline at end of file + run: dotnet build --configuration Release + + - name: dotnet test + run: dotnet test --configuration Release --no-build \ No newline at end of file From 85a1a9b1e53f2de6e3631ca4bad1604da6e65508 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Jan 2025 12:16:52 -0800 Subject: [PATCH 5/6] breaking test --- .../Models/WeatherForecastTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs b/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs index f03d0f47..32811ed6 100644 --- a/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs +++ b/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs @@ -12,6 +12,6 @@ public void TemperatureFShouldReturnCorrectValueBasedOnTemperatureC() TemperatureC = 0 }; - weatherForecast.TemperatureF.Should().Be(32); + weatherForecast.TemperatureF.Should().Be(31); } } From e105142928e903d816c6efcac978b22914610469 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Jan 2025 12:27:50 -0800 Subject: [PATCH 6/6] fixed test --- .../Models/WeatherForecastTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs b/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs index 32811ed6..f03d0f47 100644 --- a/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs +++ b/src/GitHubActionsDotNet.Api.Tests/Models/WeatherForecastTests.cs @@ -12,6 +12,6 @@ public void TemperatureFShouldReturnCorrectValueBasedOnTemperatureC() TemperatureC = 0 }; - weatherForecast.TemperatureF.Should().Be(31); + weatherForecast.TemperatureF.Should().Be(32); } }