Skip to content

refactor(HttpUtils.Generator): 优化方法生成逻辑和继承处理 #7

refactor(HttpUtils.Generator): 优化方法生成逻辑和继承处理

refactor(HttpUtils.Generator): 优化方法生成逻辑和继承处理 #7

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['8.0.x', '9.0.x']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --configuration Release --no-restore --verbosity normal
- name: Run Mud.HttpUtils.Tests
run: dotnet test Tests/Mud.HttpUtils.Tests/Mud.HttpUtils.Tests.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=httputils-test-results.trx" --results-directory TestResults/Mud.HttpUtils.Tests
- name: Run Mud.HttpUtils.Generator.Tests
run: dotnet test Tests/Mud.HttpUtils.Generator.Tests/Mud.HttpUtils.Generator.Tests.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=httputils-generator-test-results.trx" --results-directory TestResults/Mud.HttpUtils.Generator.Tests
- name: Run Mud.EntityCodeGenerator.Tests
run: dotnet test Tests/Mud.EntityCodeGenerator.Tests/Mud.EntityCodeGenerator.Tests.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=entity-generator-test-results.trx" --results-directory TestResults/Mud.EntityCodeGenerator.Tests
- name: Run Mud.ServiceCodeGenerator.Tests
run: dotnet test Tests/Mud.ServiceCodeGenerator.Tests/Mud.ServiceCodeGenerator.Tests.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=service-generator-test-results.trx" --results-directory TestResults/Mud.ServiceCodeGenerator.Tests
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.dotnet-version }}
path: TestResults/**/*.trx