1
0

test.yml 455 B

12345678910111213141516171819
  1. name: 测试
  2. on:
  3. push:
  4. branches: [master, main]
  5. pull_request:
  6. workflow_dispatch:
  7. jobs:
  8. test:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - uses: actions/setup-dotnet@v4
  13. with:
  14. dotnet-version: "10.0.x"
  15. # 纯逻辑层无游戏依赖,可在 CI 直接测试
  16. - name: 运行单元测试
  17. run: dotnet test tests/PerformanceScope.Tests/PerformanceScope.Tests.csproj -c Release