Skip to content

Commit b560b76

Browse files
authored
install graphviz (#8)
* install graphviz * fix path * call actions * fix Out-File: command not found * del unused Folder declaration in csproj files
1 parent 28544a3 commit b560b76

File tree

9 files changed

+35
-23
lines changed

9 files changed

+35
-23
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: InstallGraphviz
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Install Graphviz on Windows
7+
if: runner.os == 'Windows'
8+
run: |
9+
choco install graphviz -y
10+
echo "C:\\Program Files\\Graphviz\\bin" >> "$GITHUB_PATH"
11+
shell: bash
12+
13+
- name: Install Graphviz on Linux
14+
if: runner.os == 'Linux'
15+
run: |
16+
sudo apt-get install graphviz
17+
echo "$HOME/.local/bin" >> $GITHUB_PATH
18+
shell: bash
19+
20+
- name: Install Graphviz on macOS
21+
if: runner.os == 'macOS'
22+
run: |
23+
brew install graphviz
24+
echo "$HOME/.local/bin" >> $GITHUB_PATH
25+
shell: bash
26+
27+
- name: SelfTest run dot
28+
run: |
29+
dot -V
30+
shell: bash

.github/workflows/dotnet.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
uses: actions/setup-dotnet@v4
2626
with:
2727
dotnet-version: ${{ matrix.dotnet-version }}
28+
- name: Install GraphViz ${{ matrix.dotnet-version }}
29+
uses: ./.github/actions/install-graphviz
2830
- name: Restore dependencies
2931
run: dotnet restore
3032
- name: Test
@@ -34,4 +36,4 @@ jobs:
3436
with:
3537
name: dotnet-results-${{ matrix.dotnet-version }}-${{ matrix.os }}
3638
path: TestResults-${{ matrix.dotnet-version }}-${{ matrix.os }}
37-
if: ${{ always() }}
39+
if: ${{ always() }}

ExtensibleParaser/ExtensibleParaser.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,4 @@
2222
<ProjectReference Include="..\Regex\Regex\Regex.csproj" />
2323
</ItemGroup>
2424

25-
<ItemGroup>
26-
<Folder Include="Shared\" />
27-
</ItemGroup>
2825
</Project>

Parsers/Dot/DotParser/DotParser.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,4 @@
1818
<ProjectReference Include="..\..\..\TerminalGenerator\TerminalGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
1919
</ItemGroup>
2020

21-
<ItemGroup>
22-
<Folder Include="Shared\" />
23-
<Folder Include="Shared\" />
24-
</ItemGroup>
25-
2621
</Project>

Regex/Regex/Dot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void GenerateSvg(string dotFilePath, string outputSvgPath)
1919
{
2020
var processStartInfo = new ProcessStartInfo
2121
{
22-
FileName = "dot.exe",
22+
FileName = "dot",
2323
Arguments = $"-Tsvg \"{dotFilePath}\" -o \"{outputSvgPath}\"",
2424
RedirectStandardOutput = true,
2525
RedirectStandardError = true,

Regex/Regex/Regex.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@
1919
</PackageReference>
2020
</ItemGroup>-->
2121

22-
<ItemGroup>
23-
<Folder Include="Shared\" />
24-
</ItemGroup>
25-
2622
</Project>

Tests/ParaserTests/ParaserTests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,4 @@
3232

3333
</ItemGroup>
3434

35-
<ItemGroup>
36-
<Folder Include="Shared\" />
37-
</ItemGroup>
38-
3935
</Project>

Tests/RegexTests/RegexTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void Setup()
1414
Trace.AutoFlush = true;
1515
}
1616

17-
[TestMethod, Ignore]
17+
[TestMethod]
1818
public void DfaConstruction_3()
1919
{
2020
var pattern = @"(//[^\n]*(\n|$)|\s)*";

Tests/RegexTests/RegexTests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@
1919

2020
</ItemGroup>
2121

22-
<ItemGroup>
23-
<Folder Include="Shared\" />
24-
</ItemGroup>
25-
2622
</Project>

0 commit comments

Comments
 (0)