Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github 仅运行一次npm测试,而不是自动观察_Github_Npm_Karma Jasmine_Karma Runner - Fatal编程技术网

Github 仅运行一次npm测试,而不是自动观察

Github 仅运行一次npm测试,而不是自动观察,github,npm,karma-jasmine,karma-runner,Github,Npm,Karma Jasmine,Karma Runner,我刚刚在GitHUb repo上创建了这个基于npm的离子测试 name: Ionic test on: pull_request: branches: - 'v*' - master jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [10.x] steps: - uses: actions/checkout

我刚刚在GitHUb repo上创建了这个基于npm的离子测试

name: Ionic test

on:
  pull_request:
    branches:
    - 'v*'
    - master

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [10.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - run: npm install
    - run: npm test
但是在它结束之后

TOTAL: 33 SUCCESS
TOTAL: 33 SUCCESS
工作流不会停止。它不断旋转,公关的状态保持不变

Some checks haven’t completed yet

我试图删除
karma.conf.js
中的
//autoWatch:true,
,但它仍然在CLI和GitHub上旋转。不知道如何让npm测试只运行一次。

好的,在
karma.conf.js
中用

    autoWatch: false,
    browsers: ['ChromeHeadless'],
    singleRun: true,
GitLab现在完成了我的任务