[ci/cd]减少单元测试的目标框架
石头 authored at 2025-02-01 23:51:09
500.00 B
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
    - name: Build
      run: |
        dotnet build -c Release
    - name: Test
      run: |
        dotnet test -f net8.0
        dotnet test -f net9.0