diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d2ecde..f9463ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,8 +3,20 @@ name: psgraph-dev-build on: push: branches: [ "dev" ] + paths-ignore: + - '**/README.md' + - '**/.gitignore' + - 'docs/**' + - '.devcontainer/**' + - '.github/**' pull_request: - branches: [ "dev" ] + branches: [ "master" ] + paths-ignore: + - '**/README.md' + - '**/.gitignore' + - 'docs/**' + - '.devcontainer/**' + - '.github/**' workflow_dispatch: @@ -26,6 +38,18 @@ jobs: run: dotnet restore - name: Build run: dotnet build --configuration Debug + - name: dotnet publish + run: dotnet publish -o "./PSQuickGraph" - name: Test run: dotnet test --verbosity normal - + + - name: Install PowerShell + uses: PSModule/install-powershell@v1 + with: + Version: latest + - name: Pester tests + shell: pwsh + run: | + $PSVersionTable + Get-ChildItem + Invoke-Pester -Path ./PsGraph.Pester.Tests/ diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c903d52..968dc58 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,16 +1,14 @@ name: psgraph-publish on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] + release: + types: [published] workflow_dispatch: jobs: - build: + publish: runs-on: ubuntu-latest strategy: matrix: @@ -28,6 +26,10 @@ jobs: run: dotnet build - name: Test run: dotnet test --verbosity normal + - name: Pester tests + shell: pwsh + run: | + Invoke-Pester -Path ./PsGraph.Pester.Tests/ - name: dotnet publish run: dotnet publish -o "./PSQuickGraph" - name: psgallery publish diff --git a/PSGraph.Vega.Extensions/Assets/vega.force.directed.layout.json b/PSGraph.Vega.Extensions/Assets/vega.force.directed.layout.json index e7b36f8..11455cd 100644 --- a/PSGraph.Vega.Extensions/Assets/vega.force.directed.layout.json +++ b/PSGraph.Vega.Extensions/Assets/vega.force.directed.layout.json @@ -97,13 +97,13 @@ "type": "symbol", "encode": { "enter": { - "fill": {"scale": "color", "field": "group"}, + "fill": { "signal": "datum.nodeType === 'BaristaLabs.ChromeDevTools.Runtime.Network.RequestWillBeSentEvent'? '#e0e1dd' : scale('color', datum.group)" }, "stroke": {"value": "white"} }, "update": { "cursor": {"value": "pointer"}, "fill": { - "signal": "hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index) ? 'red' : scale('color', datum.group)" + "signal": "hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index) ? 'red' : datum.nodeType === 'BaristaLabs.ChromeDevTools.Runtime.Network.RequestWillBeSentEvent'? '#e0e1dd' : scale('color', datum.group)" }, "size": { "signal": "(hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index)) ? 2.5 * nodeRadius * nodeRadius : 2 * nodeRadius * nodeRadius" @@ -310,7 +310,7 @@ { "name": "nodeRadius", "bind": {"input": "range", "max": 50, "min": 1, "step": 1}, - "value": 5 + "value": 8 }, { "name": "nodeCharge",