Add dotnet test and build workflow

Add dotnet test and build workflow
This commit is contained in:
Stone_Red
2026-03-06 12:40:32 +01:00
committed by GitHub
5 changed files with 32 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
# 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: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build ./src --no-restore
- name: Test
run: dotnet test ./src --no-build --verbosity normal
+1 -1
View File
@@ -20,7 +20,7 @@ YesNt is a line-based, interpreted scripting language. The core idea is simple:
YesNt is intentionally minimal and is well suited for:
- Scripting in games or applications where simple syntax and customizability are needed
- Rapid prototyping or automation tasks where a lightweight embedded language is beneficial
- Automation tasks where a lightweight embedded language is beneficial
- Educational purposes to learn language design by adding new statements or modifying existing ones
- Embedding as a scripting engine in larger C# projects, with the ability to expose custom functionality through registered statements
+1 -1
View File
@@ -16,7 +16,7 @@ Each line is one statement. There are no multi-line expressions.
### Running a script from the command line
```bash
dotnet run --project YesNt.Interpreter.App -- path/to/script.ynt
yesnt path/to/script.ynt
```
### Hello world
+1 -1
View File
@@ -5,7 +5,7 @@
## Start the editor
```bash
dotnet run --project YesNt.CodeEditor -- [optional-path-to-file.ynt]
yesntcode [optional-path-to-file.ynt]
```
If you pass a file path, it is loaded on startup.
+1 -1
View File
@@ -1,6 +1,6 @@
# YesNt Library API
The `YesNt.Interpreter` project is a .NET 8 class library. You can reference it from any C# project
The `YesNt.Interpreter` project is a .NET 10 class library. You can reference it from any C# project
to embed the YesNt interpreter and run scripts programmatically.
---