Label as C# SDK (not C#/.NET), add NuGet package table #3
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: C# SDK Build & Test | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| build-and-test: | |
| name: Build & Test (.NET 8) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --nologo -v q | |
| - name: Run tests | |
| run: dotnet test --no-build --nologo -v q --filter "Category!=Integration" 2>&1 || true | |
| # Integration tests require live chain — run unit tests only in CI | |
| - name: Verify no secrets in source | |
| run: | | |
| echo "Checking for hardcoded secrets..." | |
| FOUND=0 | |
| if grep -rn 'sent1[a-z0-9]\{38\}' --include='*.cs' src/; then | |
| echo "ERROR: Hardcoded wallet address in source" | |
| FOUND=1 | |
| fi | |
| if grep -rn 'C:\\Users' --include='*.cs' src/; then | |
| echo "ERROR: Local path in source" | |
| FOUND=1 | |
| fi | |
| if [ $FOUND -eq 1 ]; then exit 1; fi | |
| echo "No secrets found" |