Skip to content
Open
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
20 changes: 19 additions & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,22 @@ test your changes to ensure that the changes made do not negatively affect
the performance of other parts of the application. Some consideration will
be made during code review to try to tweak the changes in order to improve
application performance. However, there is a chance that a pull request will be
rejected if no reasonable solution can be found to incorporate code changes.
rejected if no reasonable solution can be found to incorporate code changes.

## Before opening a pull request

DS4Windows targets .NET 8 on Windows. Please build both platforms and run the tests
locally first. These are the same steps CI runs (`.github/workflows/ci-build.yml`):

dotnet restore
dotnet test .\DS4WindowsTests\DS4WindowsTests.csproj -c Release -p:Platform=x64
dotnet publish .\DS4Windows\DS4WinWPF.csproj -c Release /p:platform=x64 -o .\bin\x64\Release\output
dotnet publish .\DS4Windows\DS4WinWPF.csproj -c Release /p:platform=x86 -o .\bin\x86\Release\output

Both x64 and x86 must build and the tests should pass. After you open the PR, check
that the CI build is green.

> Three serialization "snapshot" tests (`CheckSettingsSave`, `CheckWriteProfile`,
> `CheckJaysProfileRead`) currently fail on a clean checkout: their expected-XML fixtures
> predate fields the serializer now emits. CI skips them with `--filter`, so you can
> ignore those three until the fixtures are regenerated.
Loading