Fix: use InvariantCulture for numeric encoding; add complex JSON roun… #32
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: .NET ${{ matrix.dotnet-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| dotnet-version: ["8.0", "9.0"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Run tests | |
| run: dotnet test --no-build --configuration Release --verbosity normal | |
| - name: Run tests with coverage | |
| if: matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '8.0' | |
| run: | | |
| dotnet test --configuration Release --collect:"XPlat Code Coverage" --results-directory ./coverage | |
| - name: Upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '8.0' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| directory: ./coverage | |
| fail_ci_if_error: false |