From e9fd2f5034df309f3590309a607ff35c74a95dfa Mon Sep 17 00:00:00 2001 From: Eris Jakupi Date: Mon, 1 Sep 2025 10:08:07 +0200 Subject: [PATCH 1/5] add a new line to weather forecast --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index 786b4a10..67da0a38 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -10,3 +10,5 @@ public record WeatherForecast public string? Summary { get; init; } } + + From 54a2e25ab41960ab2c182940df0a042c8bef8505 Mon Sep 17 00:00:00 2001 From: Eris Jakupi Date: Mon, 1 Sep 2025 10:26:51 +0200 Subject: [PATCH 2/5] neues feature --- .github/workflows/pr-verify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index 3243ea4b..f7dc0454 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -19,3 +19,4 @@ jobs: - name: Build with dotnet run: dotnet build --configuration Release + From 5b5cb7ba15f6ca87baff3cf3589a72147c415f2f Mon Sep 17 00:00:00 2001 From: Eris Jakupi Date: Mon, 1 Sep 2025 11:16:09 +0200 Subject: [PATCH 3/5] add dotnet test to pr verify --- .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 f7dc0454..5f355b6a 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -19,4 +19,7 @@ jobs: - name: Build with dotnet run: dotnet build --configuration Release - + + - name: dotnet test + run: dotnet test --configuration Release --no-build + From b6cd1756b86d17b6d2c9278c31a0e1a0a4517119 Mon Sep 17 00:00:00 2001 From: Eris Jakupi Date: Mon, 1 Sep 2025 11:23:12 +0200 Subject: [PATCH 4/5] add failing 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 9d5396e0eaf67998374bc4b732d4031c04939525 Mon Sep 17 00:00:00 2001 From: Eris Jakupi Date: Mon, 1 Sep 2025 11:25:44 +0200 Subject: [PATCH 5/5] fix 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); } }