Skip to content

Commit

Permalink
Test and fix build check (#64)
Browse files Browse the repository at this point in the history
Co-authored-by: yallie <yallie@yandex.ru>
  • Loading branch information
sebastienros and yallie authored Feb 21, 2024
1 parent 309802e commit 22be69e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Irony.Tests/EvaluatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
5 changes: 2 additions & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 22be69e

Please sign in to comment.