diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19960c0..1bcfd13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,23 +1,23 @@ name: Build on: - push: - branches: [ master ] - pull_request: branches: [ master ] jobs: build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: 1 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test - run: dotnet test ./040.Irony.Tests.VsTest.csproj -c release + run: dotnet test ./Irony.Tests/040.Irony.Tests.VsTest.csproj -c release diff --git a/Irony.Tests/EvaluatorTests.cs b/Irony.Tests/EvaluatorTests.cs index e2ab49e..b3dd542 100644 --- a/Irony.Tests/EvaluatorTests.cs +++ b/Irony.Tests/EvaluatorTests.cs @@ -124,7 +124,7 @@ public void TestEvaluator_BuiltIns() { script = @"print(format('{0} * {1} = {2}', 3, 4, 3 * 4))"; eval.Evaluate(script); result = eval.GetOutput(); - Assert.AreEqual("3 * 4 = 12\r\n", result, "Unexpected computation result"); + Assert.AreEqual("3 * 4 = 12" + Environment.NewLine, result, "Unexpected computation result"); //Add custom built-in method SayHello and test it eval.Runtime.BuiltIns.AddMethod(SayHello, "SayHello", 1, 1, "name"); diff --git a/ReadMe.md b/ReadMe.md index 2fbb515..db1aa03 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,9 +1,8 @@ # Irony — .NET Language Implementation Kit https://github.com/IronyProject/Irony -[![appveyor](https://ci.appveyor.com/api/projects/status/github/ironyproject/irony?svg=true)](https://ci.appveyor.com/project/yallie/irony) -[![tests](https://img.shields.io/appveyor/tests/yallie/irony.svg)](https://ci.appveyor.com/project/yallie/irony/build/tests) -[![nuget](https://img.shields.io/nuget/v/Irony.svg)](https://www.nuget.org/packages/Irony) +[![Github Actions](https://github.com/IronyProject/Irony/actions/workflows/build.yml/badge.svg)](https://github.com/IronyProject/Irony/actions) +[![Nuget](https://img.shields.io/nuget/v/Irony.svg)](https://www.nuget.org/packages/Irony) ### Prerequisites