Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
96765cc
refactor(codebase): normalize code style by updating formatting acros…
j-d-ha Jan 24, 2026
122f2b9
refactor(formatting): improve code readability by normalizing formatt…
j-d-ha Jan 24, 2026
fe757fb
refactor(formatting): unify code style and improve consistency
j-d-ha Jan 24, 2026
bfbee59
refactor(formatting): improve readability by adjusting multi-line wra…
j-d-ha Jan 24, 2026
8e78eab
refactor(formatting): update formatting configuration and workflows
j-d-ha Jan 24, 2026
34d084d
refactor(workflows): enhance test steps and add global test configura…
j-d-ha Jan 24, 2026
0cb5dc3
refactor(workflows): remove redundant newline in `pr-build.yaml`
j-d-ha Jan 24, 2026
a4ef656
feat(tests): add xUnit runner configuration for unit tests
j-d-ha Jan 24, 2026
70a2563
feat(tests): add xUnit runner configuration for all test projects
j-d-ha Jan 24, 2026
e55c7f6
feat(tasks): add CI test suite and integrate into workflows
j-d-ha Jan 24, 2026
cb724bf
refactor(tasks): update CleanupCode include paths for better scoping
j-d-ha Jan 24, 2026
bf8c04a
refactor(tasks): update CleanupCode exclusions for improved scoping
j-d-ha Jan 24, 2026
0c2b74e
refactor(tasks): remove unnecessary CleanupCode exclusions and update…
j-d-ha Jan 24, 2026
10822b3
refactor(packages): standardize XML tag formatting in `Directory.Pack…
j-d-ha Jan 24, 2026
5098c15
refactor(packages): standardize self-closing tag formatting and remov…
j-d-ha Jan 24, 2026
fbec442
refactor(packages): standardize self-closing tag formatting in `Direc…
j-d-ha Jan 24, 2026
553a7e8
Merge branch 'main' into refactor/reformat
j-d-ha Jan 24, 2026
c26886a
feat(workflows): add timeout configuration for build and test steps
j-d-ha Jan 25, 2026
89b8327
Merge remote-tracking branch 'origin/refactor/reformat' into refactor…
j-d-ha Jan 25, 2026
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
7 changes: 0 additions & 7 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "1.2.5",
"commands": [
"csharpier"
],
"rollForward": false
},
"jetbrains.resharper.globaltools": {
"version": "2025.3.1",
"commands": [
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/main-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
build-and-test:

runs-on: ubuntu-latest

timeout-minutes: 10

steps:
- name: Act Workaround # https://github.com/nektos/act/issues/973
Expand Down Expand Up @@ -86,7 +88,8 @@ jobs:
run: dotnet build --no-restore --configuration Release /p:TreatWarningsAsErrors=true

- name: Run tests
run: dotnet test --no-build --configuration Release --verbosity normal --results-directory ./coverage --coverage --coverage-output-format cobertura
timeout-minutes: 3
run: task test:ci

- name: Stop SonarQube
env:
Expand Down
53 changes: 28 additions & 25 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: PR Build

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
types: [ opened, synchronize, reopened, ready_for_review ]
branches: [ "main" ]
paths-ignore:
- 'docs/**'
Expand All @@ -24,6 +24,8 @@ jobs:
if: github.event.pull_request.draft == false

runs-on: ubuntu-latest

timeout-minutes: 10

steps:
- name: Act Workaround # https://github.com/nektos/act/issues/973
Expand All @@ -41,30 +43,13 @@ jobs:

- name: Restore dependencies
run: dotnet restore

- name: Install dotnet tools
run: dotnet tool restore

- name: Install Task
uses: go-task/setup-task@v1

- name: Run formatting
run: task format:csharpier

- name: Check for formatting changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "❌ Code formatting issues detected!"
echo "The following files need formatting:"
git status --porcelain
echo ""
echo "Run the following commands locally to fix:"
echo " task format:all"
exit 1
else
echo "βœ… All code is properly formatted!"
fi

- name: Set up JDK 17
uses: actions/setup-java@v5
with:
Expand Down Expand Up @@ -102,25 +87,43 @@ jobs:
/d:sonar.exclusions="**/bin/**,**/obj/**,tests/MinimalLambda.SourceGenerators.UnitTests/Snapshots/**,**/coverage/**,**/.nuget/**,**/packages/**,src/MinimalLambda.Testing/HostFactoryResolver.cs" \
/d:sonar.coverage.exclusions="**/*" \
/d:sonar.token="$SONAR_TOKEN"

- name: Build
run: dotnet build --no-restore --configuration Release /p:TreatWarningsAsErrors=true

- name: Run tests
run: dotnet test --no-build --configuration Release --verbosity normal --results-directory ./coverage --coverage --coverage-output-format cobertura

timeout-minutes: 3
run: task test:ci

- name: Stop SonarQube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="$SONAR_TOKEN"

- name: Validate AOT Compatability
run: task build:aot-check

- name: Upload coverage reports
uses: codecov/codecov-action@v5
with:
files: ./coverage/**/*.cobertura.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

- name: Run formatting
run: task format:cleanupcode

- name: Check for formatting changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "❌ Code formatting issues detected!"
echo "The following files need formatting:"
git status --porcelain
echo ""
echo "Run the following commands locally to fix:"
echo " task format:all"
exit 1
else
echo "βœ… All code is properly formatted!"
fi
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ nunit-*.xml
/temp.md
/site/
/.cache/
/.sonarqube/
/codecov*

1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ task test:watch # dotnet watch ... test
```

Direct `dotnet` commands:

```bash
# Run the full test suite (solution-level)
DOTNET_NOLOGO=1 dotnet test --configuration Release
Expand Down
5 changes: 3 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) And !$(MSBuildProjectDirectory.Contains('tests'))">
<PropertyGroup
Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) And !$(MSBuildProjectDirectory.Contains('tests'))">
<IsAotCompatible>true</IsAotCompatible>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
Expand All @@ -32,4 +33,4 @@
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
</Project>
6 changes: 2 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageVersion
Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing"
Version="1.1.3"
/>
Version="1.1.3" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.17" />
<PackageVersion Include="OpenTelemetry.Exporter.InMemory" Version="1.14.0" />
<PackageVersion Include="PolySharp" Version="1.15.0" />
Expand All @@ -47,7 +46,6 @@
<!-- Testing Libraries -->
<PackageVersion Include="AwesomeAssertions" Version="9.3.0" />
<PackageVersion Include="Basic.Reference.Assemblies.Net90" Version="1.8.4" />
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.4" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.0.4" />
Expand Down Expand Up @@ -82,4 +80,4 @@
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.1" />
<PackageVersion Include="OpenTelemetry.Instrumentation.AWSLambda" Version="1.12.1" />
</ItemGroup>
</Project>
</Project>
Loading
Loading