Skip to content

Commit

Permalink
Merge branch 'microsoft-di-and-roslyn-compiler' of github.com:SparkVi…
Browse files Browse the repository at this point in the history
…ewEngine/spark into microsoft-di-and-roslyn-compiler
  • Loading branch information
bounav committed Jan 26, 2024
2 parents 0ef3206 + dad2b39 commit d9ce0dc
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: windows-2019

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
cd src
dotnet restore spark-ci.slnf
- name: Build
run: |
cd src
dotnet build --no-restore spark-ci.slnf
- name: Test
run: |
cd src
dotnet test --no-build --verbosity normal spark-ci.slnf
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ else

It's as easy as `PM> Install-Package Spark` from [nuget](http://nuget.org/packages/Spark) for the core

![Continuous Integration Status](https://github.com/SparkViewEngine/spark/actions/workflows/ci.yml/badge.svg)
### Need Help

* [Google Group](https://groups.google.com/forum/?fromgroups=#!forum/spark-dev)
Expand Down
2 changes: 1 addition & 1 deletion src/Spark.Web.Tests/Compiler/CSharpViewCompilerTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void ProvideFullException()
{
new SendExpressionChunk { Code = "NoSuchVariable" }
}),
Throws.TypeOf<CodeDomCompilerException>().Or.TypeOf<RoslynCompilerException>());
Throws.TypeOf<CompilerException>());
}

[Test]
Expand Down
1 change: 1 addition & 0 deletions src/Spark.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Castle MonoRail", "Castle M
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B23DD51D-925A-4488-ABE8-F2A9D69E5976}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\ci.yml = ..\.github\workflows\ci.yml
Directory.Build.props = Directory.Build.props
Settings.StyleCop = Settings.StyleCop
..\spark.build = ..\spark.build
Expand Down
1 change: 0 additions & 1 deletion src/Spark/Compiler/VisualBasic/VisualBasicViewCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//

using System;
using System.Collections.Generic;
using System.IO;
Expand Down
27 changes: 27 additions & 0 deletions src/spark-ci.slnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"solution": {
"path": "Spark.sln",
"projects": [
"Castle.MonoRail.Views.Spark.Tests\\Castle.MonoRail.Views.Spark.Tests.csproj",
"Castle.MonoRail.Views.Spark\\Castle.MonoRail.Views.Spark.csproj",
"Castle.Monorail.Pdf.Tests\\Castle.MonoRail.Pdf.Tests.csproj",
"Castle.Monorail.Pdf\\Castle.MonoRail.Pdf.csproj",
"Spark.Python.Tests\\Spark.Python.Tests.csproj",
"Spark.Python\\Spark.Python.csproj",
"Spark.Ruby.Tests\\Spark.Ruby.Tests.csproj",
"Spark.Ruby\\Spark.Ruby.csproj",
"Spark.Tests\\Spark.Tests.csproj",
"Spark.Web.Mvc.Pdf.Tests\\Spark.Web.Mvc.Pdf.Tests.csproj",
"Spark.Web.Mvc.Pdf\\Spark.Web.Mvc.Pdf.csproj",
"Spark.Web.Mvc.Python\\Spark.Web.Mvc.Python.csproj",
"Spark.Web.Mvc.Ruby.Tests\\Spark.Web.Mvc.Ruby.Tests.csproj",
"Spark.Web.Mvc.Ruby\\Spark.Web.Mvc.Ruby.csproj",
"Spark.Web.Mvc.Tests\\Spark.Web.Mvc.Tests.csproj",
"Spark.Web.Mvc\\Spark.Web.Mvc.csproj",
"Spark.Web.Tests\\Spark.Web.Tests.csproj",
"Spark.Web\\Spark.Web.csproj",
"Spark\\Spark.csproj",
"Xpark\\Xpark.csproj"
]
}
}

0 comments on commit d9ce0dc

Please sign in to comment.