test.yml 645 B

12345678910111213141516171819202122
  1. # ── 测试 · Tests ──
  2. # 纯逻辑层无游戏依赖,可在公共 runner 直接测试
  3. # The pure-logic layer has no game dependency and can be tested on a public runner
  4. name: 测试 · Tests
  5. on:
  6. push:
  7. branches: [master, main]
  8. pull_request:
  9. workflow_dispatch:
  10. jobs:
  11. test:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v4
  15. - uses: actions/setup-dotnet@v4
  16. with:
  17. dotnet-version: "10.0.x"
  18. # 运行单元测试 / Run unit tests
  19. - name: 运行单元测试 · Run unit tests
  20. run: dotnet test tests/PerformanceScope.Tests/PerformanceScope.Tests.csproj -c Release