diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c693935cf..b36c2c1e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,6 @@ jobs: with: dotnet-version: 3.0.100 - - name: Add coveralls.net - run: dotnet tool install coveralls.net --version 1.0.0 --tool-path tools - - name: Build (Release) run: dotnet build src -c Release @@ -40,14 +37,15 @@ jobs: - name: Build & Test (Debug) run: dotnet test src -c Debug - - name: Coveralls - run: dotnet test src -c Release -f netcoreapp2.1 /p:Include=\"[${{env.PROJECT_NAME}}]*\" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./coverage.info + - name: Coverlet + run: dotnet test src -c Release -f netcoreapp2.1 /p:Include=\"[${{env.PROJECT_NAME}}]*\" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov - name: Coveralls Upload uses: coverallsapp/github-action@v1.0.1 + if: github.event_name == 'push' with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: src/${{env.PROJECT_NAME}}.Tests/coverage.info + path-to-lcov: src/${{env.PROJECT_NAME}}.Tests/coverage.netcoreapp2.1.info - name: Pack run: dotnet pack src -c Release diff --git a/src/Markdig.Tests/Markdig.Tests.csproj b/src/Markdig.Tests/Markdig.Tests.csproj index a4a5c74ce..949c757e8 100644 --- a/src/Markdig.Tests/Markdig.Tests.csproj +++ b/src/Markdig.Tests/Markdig.Tests.csproj @@ -7,7 +7,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Markdig.Tests/Specs/GridTableSpecs.generated.cs b/src/Markdig.Tests/Specs/GridTableSpecs.generated.cs index 9d49e43e2..2ee7b5959 100644 --- a/src/Markdig.Tests/Specs/GridTableSpecs.generated.cs +++ b/src/Markdig.Tests/Specs/GridTableSpecs.generated.cs @@ -1,4 +1,4 @@ -// Generated: 2019-04-05 16:06:14 +// Generated: 2020-04-18 06:41:26 // -------------------------------- // Grid Tables @@ -62,8 +62,8 @@ public void ExtensionsGridTable_Example001() // // Should be rendered as: // - // - // + // + // // // // @@ -73,7 +73,7 @@ public void ExtensionsGridTable_Example001() //
This is
Console.WriteLine("Example 1\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---------+---------+\n| This is | a table |", "\n\n\n\n\n\n\n\n\n
This isa table
", "gridtables|advanced"); + TestParser.TestSpec("+---------+---------+\n| This is | a table |", "\n\n\n\n\n\n\n\n\n
This isa table
", "gridtables|advanced"); } // The following is not a valid row separator @@ -112,9 +112,9 @@ public void ExtensionsGridTable_Example003() // // Should be rendered as: // - // - // - // + // + // + // // // //
Col1 @@ -135,7 +135,7 @@ public void ExtensionsGridTable_Example003() //
Console.WriteLine("Example 3\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---------+---------+---------+\n| Col1 | Col2 | Col3 |\n| Col1a | Col2a | Col3a |\n| Col1b | Col3b |\n| Col1c |", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Col1\nCol1aCol2\nCol2aCol3\nCol3a
Col1bCol3b
Col1c
", "gridtables|advanced"); + TestParser.TestSpec("+---------+---------+---------+\n| Col1 | Col2 | Col3 |\n| Col1a | Col2a | Col3a |\n| Col1b | Col3b |\n| Col1c |", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Col1\nCol1aCol2\nCol2aCol3\nCol3a
Col1bCol3b
Col1c
", "gridtables|advanced"); } // A row header is separated using `+========+` instead of `+---------+`: @@ -152,8 +152,8 @@ public void ExtensionsGridTable_Example004() // // Should be rendered as: // - // - // + // + // // // // @@ -163,7 +163,7 @@ public void ExtensionsGridTable_Example004() //
This is
Console.WriteLine("Example 4\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---------+---------+\n| This is | a table |\n+=========+=========+", "\n\n\n\n\n\n\n\n\n
This isa table
", "gridtables|advanced"); + TestParser.TestSpec("+---------+---------+\n| This is | a table |\n+=========+=========+", "\n\n\n\n\n\n\n\n\n
This isa table
", "gridtables|advanced"); } // The last column separator `|` may be omitted: @@ -179,8 +179,8 @@ public void ExtensionsGridTable_Example005() // // Should be rendered as: // - // - // + // + // // // // @@ -190,7 +190,7 @@ public void ExtensionsGridTable_Example005() //
This is
Console.WriteLine("Example 5\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---------+---------+\n| This is | a table with a longer text in the second column", "\n\n\n\n\n\n\n\n\n
This isa table with a longer text in the second column
", "gridtables|advanced"); + TestParser.TestSpec("+---------+---------+\n| This is | a table with a longer text in the second column", "\n\n\n\n\n\n\n\n\n
This isa table with a longer text in the second column
", "gridtables|advanced"); } // The respective width of the columns are calculated from the ratio between the total size of the first table row without counting the `+`: `+----+--------+----+` would be divided between: @@ -215,9 +215,9 @@ public void ExtensionsGridTable_Example006() // // Should be rendered as: // - // - // - // + // + // + // // // // @@ -228,7 +228,7 @@ public void ExtensionsGridTable_Example006() //
A
Console.WriteLine("Example 6\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+----+--------+----+\n| A | B C D | E |\n+----+--------+----+", "\n\n\n\n\n\n\n\n\n\n\n
AB C DE
", "gridtables|advanced"); + TestParser.TestSpec("+----+--------+----+\n| A | B C D | E |\n+----+--------+----+", "\n\n\n\n\n\n\n\n\n\n\n
AB C DE
", "gridtables|advanced"); } // Alignment might be specified on the first row using the character `:`: @@ -245,9 +245,9 @@ public void ExtensionsGridTable_Example007() // // Should be rendered as: // - // - // - // + // + // + // // // // @@ -258,7 +258,7 @@ public void ExtensionsGridTable_Example007() //
A
Console.WriteLine("Example 7\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+-----+:---:+-----+\n| A | B | C |\n+-----+-----+-----+", "\n\n\n\n\n\n\n\n\n\n\n
ABC
", "gridtables|advanced"); + TestParser.TestSpec("+-----+:---:+-----+\n| A | B | C |\n+-----+-----+-----+", "\n\n\n\n\n\n\n\n\n\n\n
ABC
", "gridtables|advanced"); } // A grid table may have cells spanning both columns and rows: @@ -279,9 +279,9 @@ public void ExtensionsGridTable_Example008() // // Should be rendered as: // - // - // - // + // + // + // // // // @@ -302,7 +302,7 @@ public void ExtensionsGridTable_Example008() //
AAAAA
Console.WriteLine("Example 8\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---+---+---+\n| AAAAA | B |\n+---+---+ B +\n| D | E | B |\n+ D +---+---+\n| D | CCCCC |\n+---+---+---+", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
AAAAAB\nB\nB
D\nD\nDE
CCCCC
", "gridtables|advanced"); + TestParser.TestSpec("+---+---+---+\n| AAAAA | B |\n+---+---+ B +\n| D | E | B |\n+ D +---+---+\n| D | CCCCC |\n+---+---+---+", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
AAAAAB\nB\nB
D\nD\nDE
CCCCC
", "gridtables|advanced"); } // A grid table may have cells with both colspan and rowspan: @@ -323,9 +323,9 @@ public void ExtensionsGridTable_Example009() // // Should be rendered as: // - // - // - // + // + // + // // // //
AAAAA @@ -345,7 +345,7 @@ public void ExtensionsGridTable_Example009() //
Console.WriteLine("Example 9\nSection Extensions / Grid Table\n"); - TestParser.TestSpec("+---+---+---+\n| AAAAA | B |\n+ AAAAA +---+\n| AAAAA | C |\n+---+---+---+\n| D | E | F |\n+---+---+---+", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
AAAAA\nAAAAA\nAAAAAB
C
DEF
", "gridtables|advanced"); + TestParser.TestSpec("+---+---+---+\n| AAAAA | B |\n+ AAAAA +---+\n| AAAAA | C |\n+---+---+---+\n| D | E | F |\n+---+---+---+", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
AAAAA\nAAAAA\nAAAAAB
C
DEF
", "gridtables|advanced"); } // A grid table may not have irregularly shaped cells: diff --git a/src/SpecFileGen/Program.cs b/src/SpecFileGen/Program.cs index 7cb0017d2..e07bc7b72 100644 --- a/src/SpecFileGen/Program.cs +++ b/src/SpecFileGen/Program.cs @@ -137,7 +137,7 @@ static void Main() if (anyChanged && Environment.GetEnvironmentVariable("CI") != null) { - EmitError("Run SpecFileGen when changing specification files"); + EmitError("Error - Specification files have changed. You must run SpecFileGen when changing specification files."); Environment.Exit(1); }