Github 仅运行一次npm测试,而不是自动观察
我刚刚在GitHUb repo上创建了这个基于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
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现在完成了我的任务