优化代码,添加一个调试选项 #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-Check | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "feature" ] | |
pull_request: | |
types: | |
- opened | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
dotnet-version: "8.0" | |
target-version: "net8.0" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: "Setup Dotnet" | |
uses: "actions/setup-dotnet@v3" | |
with: | |
dotnet-version: "${{env.dotnet-version}}" | |
- name: Test | |
run: dotnet test WonderLab.Desktop/WonderLab.Desktop.csproj | |
test_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: "Setup Dotnet" | |
uses: "actions/setup-dotnet@v3" | |
with: | |
dotnet-version: "${{env.dotnet-version}}" | |
- name: Test | |
run: dotnet build WonderLab.Desktop/WonderLab.Desktop.csproj |