coverage: fix ChartSerializer ?? [] null-branch gap — FromJson_Missin… #105
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: GitHub Pages — Cookbook + API Reference | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Opt JS actions into Node 24 ahead of the Sept 2026 forced migration. | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| permissions: | |
| pages: write | |
| id-token: write | |
| contents: read | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.x | |
| dotnet-quality: 'preview' | |
| - name: Install DocFx | |
| run: dotnet tool install -g docfx | |
| - name: Restore & Build | |
| run: | | |
| dotnet restore MatPlotLibNet.CI.slnf | |
| dotnet build MatPlotLibNet.CI.slnf --no-restore --configuration Release | |
| # Sample images are committed in images/ (generated locally where SkiaSharp | |
| # native libraries are available). No need to regenerate on CI. | |
| - name: Copy images to docs | |
| run: cp -r images docs/images | |
| - name: Build DocFx site | |
| run: | | |
| docfx metadata docs/docfx.json | |
| cp docs/api-toc.yml docs/api/toc.yml | |
| docfx build docs/docfx.json | |
| - name: Publish Blazor WASM Playground | |
| run: dotnet publish Samples/MatPlotLibNet.Playground/MatPlotLibNet.Playground.csproj -c Release -o playground-out | |
| - name: Copy Playground to site | |
| run: cp -r playground-out/wwwroot docs/_site/playground | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/_site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |