# ── 测试 · Tests ── # 纯逻辑层无游戏依赖,可在公共 runner 直接测试 # The pure-logic layer has no game dependency and can be tested on a public runner name: 测试 · Tests on: push: branches: [master, main] pull_request: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: dotnet-version: "10.0.x" # 运行单元测试 / Run unit tests - name: 运行单元测试 · Run unit tests run: dotnet test tests/OneShot.Tests/OneShot.Tests.csproj -c Release