From 94f9fc875a0df81201445e4b6eecbf041952a5bb Mon Sep 17 00:00:00 2001 From: arnaud bossobita Date: Thu, 25 Dec 2025 18:46:51 -0700 Subject: [PATCH 1/5] add pr verify workflow --- .github/workflows/pr-verify.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr-verify.yml diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml new file mode 100644 index 00000000..c6368933 --- /dev/null +++ b/.github/workflows/pr-verify.yml @@ -0,0 +1,21 @@ +name: PR Verify + +on: + push: + branches: [ "main" ] + +jobs: + build: + name: PR Verify + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 # Check out the repository first + + - name: Set up .NET Core # Set up the .NET environment + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0 + + - name: Build with dotnet # Build the project + run: dotnet build --configuration Release \ No newline at end of file From 64f39bc3a43a7a55d5fd5efd0d3eacb30b32bc21 Mon Sep 17 00:00:00 2001 From: arnaud bossobita Date: Thu, 25 Dec 2025 18:53:52 -0700 Subject: [PATCH 2/5] add a new line to the weather forecast --- 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 871ce4c2bf6b535e9cb6d731432ad1b47245026c Mon Sep 17 00:00:00 2001 From: arnaud bossobita Date: Thu, 25 Dec 2025 19:59:16 -0700 Subject: [PATCH 3/5] Change PR verify workflow trigget to pull_request from push --- .github/workflows/pr-verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index c6368933..b81c17fc 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -1,7 +1,7 @@ name: PR Verify on: - push: + pull_request: branches: [ "main" ] jobs: From c795c96b79beb28bad2251dffcc27370fac2b260 Mon Sep 17 00:00:00 2001 From: arnaud bossobita Date: Thu, 25 Dec 2025 20:18:09 -0700 Subject: [PATCH 4/5] break the build --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index efe721f3..67aacd20 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -10,4 +10,4 @@ public record WeatherForecast public string? Summary { get; init; } } - +} From 4010f722e0aa7a6240478654137d52dffdd9853d Mon Sep 17 00:00:00 2001 From: arnaud bossobita Date: Thu, 25 Dec 2025 20:51:49 -0700 Subject: [PATCH 5/5] fix the build --- src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs index 67aacd20..efe721f3 100644 --- a/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs +++ b/src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs @@ -10,4 +10,4 @@ public record WeatherForecast public string? Summary { get; init; } } -} +