Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Verify

on:
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
name: PR Verify
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0

- name: Build with dotnet
run: dotnet build --configuration Release

- name: dotnet test
run: dotnet test --configuration Release --no-build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public void TemperatureFShouldReturnCorrectValueBasedOnTemperatureC()
TemperatureC = 0
};

weatherForecast.TemperatureF.Should().Be(32);
weatherForecast.TemperatureF.Should().Be(31);
}
}
2 changes: 1 addition & 1 deletion src/GitHubActionsDotNet.Api/Models/WeatherForecast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ public record WeatherForecast
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public string? Summary { get; init; }
}
}