Skip to content
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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/
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -310,7 +310,7 @@
{
"name": "nodeRadius",
"bind": {"input": "range", "max": 50, "min": 1, "step": 1},
"value": 5
"value": 8
},
{
"name": "nodeCharge",
Expand Down
Loading