fix: resolve xUnit1031 and RS2008 analyzer diagnostics for Release li… #45
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NativeAOT Verify | |
| on: | |
| push: | |
| branches: ['**'] | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| pull_request: | |
| branches: ['**'] | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| jobs: | |
| nativeaot-e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 6.0.x | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore AspectCore-Framework.sln | |
| - name: Build solution | |
| run: dotnet build AspectCore-Framework.sln -c Release --no-restore | |
| - name: Publish NativeAOT E2E (self-contained AOT binary) | |
| run: dotnet publish tests/AspectCore.NativeAot.E2E/AspectCore.NativeAot.E2E.csproj -c Release -r linux-x64 -o ./publish-aot --no-restore | |
| - name: Run NativeAOT E2E binary | |
| run: ./publish-aot/AspectCore.NativeAot.E2E | |
| - name: Verify exit code | |
| if: failure() | |
| run: echo "NativeAOT E2E tests failed" && exit 1 |