首页 > 解决方案 > xunit 集成测试永远不会在 .net 核心 github-actions 上结束

问题描述

嗨,我有一个用 .net 制作的网络应用程序,但我不确定问题出在哪里。如果是我的测试,或者 github 操作或其他

我为构建配置了一个 github-actions。我的操作系统是 Windows。

我的工作流程文件如下:

name: .NET Core

on:
  push:
    branches: [ master, develop ]
  pull_request:
    branches: [ master, develop ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 3.1.101
    - name: Install dependencies
      run: dotnet restore
    - name: Build
      run: dotnet build --configuration Release --no-restore
    - name: Test
      run: dotnet test

当我dotnet test在我的电脑上运行命令时,我得到了这个

在此处输入图像描述

当 github-actions 开始时,集成测试永远不会结束。

在此处输入图像描述

测试执行日志的整个文件可以在这里找到

有人能帮我吗?

标签: .net-coregithub-actionsxunit.net

解决方案


推荐阅读