v9.10.2019.0101  全面巩固批量Insert/Update/Upsert,支持数据备份、恢复和同步,支持实体列表保存到文件以及加载
大石头 authored at 2019-01-01 13:38:33
1.00 KiB
X
name: test

on:
  push:
    branches: [ '*' ]
  pull_request:
    branches: [ '*' ]
  workflow_dispatch:

jobs:
  test:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v4
    - name: Setup dotNET
      uses: actions/setup-dotnet@v4
      with:
        dotnet-version: |
          6.x
          7.x
          8.x
          9.x
          10.x
    - name: Build
      run: |
        dotnet build -c Release
    - name: Test
      # 使用单线程串行执行,避免测试间共享资源(端口/文件/静态状态)冲突失败
      env:
        XUNIT_MAX_PARALLEL_THREADS: 1
      run: |
        dotnet test XUnitTest.Core\XUnitTest.Core.csproj -f net8.0 --no-build
        dotnet test XUnitTest.Core\XUnitTest.Core.csproj -f net8.0-windows --no-build
        dotnet test XUnitTest.Core\XUnitTest.Core.csproj -f net9.0 --no-build
        dotnet test XUnitTest.Core\XUnitTest.Core.csproj -f net10.0 --no-build
        dotnet test XUnitTest.Core\XUnitTest.Core.csproj -f net10.0-windows --no-build