mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
Add dotnet test and build workflow
Add dotnet test and build workflow
This commit is contained in:
@@ -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
|
||||||
@@ -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:
|
YesNt is intentionally minimal and is well suited for:
|
||||||
|
|
||||||
- Scripting in games or applications where simple syntax and customizability are needed
|
- 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
|
- 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
|
- Embedding as a scripting engine in larger C# projects, with the ability to expose custom functionality through registered statements
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ Each line is one statement. There are no multi-line expressions.
|
|||||||
### Running a script from the command line
|
### Running a script from the command line
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dotnet run --project YesNt.Interpreter.App -- path/to/script.ynt
|
yesnt path/to/script.ynt
|
||||||
```
|
```
|
||||||
|
|
||||||
### Hello world
|
### Hello world
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
## Start the editor
|
## Start the editor
|
||||||
|
|
||||||
```bash
|
```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.
|
If you pass a file path, it is loaded on startup.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# YesNt Library API
|
# 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.
|
to embed the YesNt interpreter and run scripts programmatically.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user