Add Forgejo CI workflows
This commit is contained in:
parent
fb0dcccaf4
commit
3f10f4a1f6
3 changed files with 73 additions and 0 deletions
35
.forgejo/workflows/build.yml
Normal file
35
.forgejo/workflows/build.yml
Normal 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
|
||||
35
.forgejo/workflows/tests.yml
Normal file
35
.forgejo/workflows/tests.yml
Normal 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
|
||||
|
|
@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
The 2.0 release separates the project into two NuGet packages:
|
||||
|
||||
- `CSMic`: the core parser, interpreter, variable store, and custom function API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue