Skip to content

多操作系统多运行时版本矩阵测试 #415

多操作系统多运行时版本矩阵测试

多操作系统多运行时版本矩阵测试 #415

Workflow file for this run

name: test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
target-framework: [ 'net6.0', 'net8.0', 'net9.0' ]
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 ${{ matrix.target-framework }}