Add Forgejo CI workflows

This commit is contained in:
codex 2026-06-24 15:31:04 -05:00
commit 3f10f4a1f6
3 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,35 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore local tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore CsMic.sln
- name: Build
run: dotnet build CsMic.sln --no-restore

View file

@ -0,0 +1,35 @@
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore local tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore CsMic.sln
- name: Run tests
run: dotnet test CsMic.sln --no-restore

View file

@ -2,6 +2,9 @@
CS-MIC is a small, embeddable expression interpreter for .NET applications. It is designed for places where users need to enter flexible numeric input, while the host application needs a deterministic decimal result and a controlled extension surface. CS-MIC is a small, embeddable expression interpreter for .NET applications. It is designed for places where users need to enter flexible numeric input, while the host application needs a deterministic decimal result and a controlled extension surface.
![Build](https://git.jordanwages.com/wagesj45/cs-mic/actions/workflows/build.yml/badge.svg?branch=main)
![Tests](https://git.jordanwages.com/wagesj45/cs-mic/actions/workflows/tests.yml/badge.svg?branch=main)
The 2.0 release separates the project into two NuGet packages: The 2.0 release separates the project into two NuGet packages:
- `CSMic`: the core parser, interpreter, variable store, and custom function API. - `CSMic`: the core parser, interpreter, variable store, and custom function API.