added basic unit tests

This commit is contained in:
2025-07-30 11:03:19 +08:00
parent 575281869b
commit 3d2a08801f
10 changed files with 259 additions and 143 deletions

View File

@@ -0,0 +1,18 @@
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: woryzen
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run unit tests
run: |
cargo test
- name: Publish artifacts
env:
CARGO_REGISTRIES_GITEA_TOKEN: Bearer ${{ secrets.PUBLISHER_TOKEN }}
run: |
cargo publish