【问题标题】:Migrating Coveralls Report from Travis-CI to GitHub Actions将工作服报告从 Travis-CI 迁移到 GitHub Actions
【发布时间】:2021-02-10 21:40:23
【问题描述】:

我遵循了这个设置指南:Integrating with coveralls.io 这对于使用工作服和纽约市的 Travis-CI 来说是完美的。但最近在迁移到 GitHub Actions 时,该步骤开始失败并出现以下错误:

> js-big-decimal@1.3.3 coverage /home/runner/work/js-big-decimal/js-big-decimal
> nyc report --reporter=text-lcov | coveralls


/home/runner/work/js-big-decimal/js-big-decimal/node_modules/coveralls/bin/coveralls.js:19
      throw err;
      ^
Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}
(Use `node --trace-uncaught ...` to show where the exception was thrown)
npm ERR! code ELIFECYCLE

最好的方法是什么?

【问题讨论】:

    标签: travis-ci github-actions coveralls


    【解决方案1】:
    • 编辑 package.json 中的覆盖脚本以使用 lcov 的默认报告器
    "coverage": nyc report --reporter=lcov
    
    • 修改流程以使用官方 Coveralls 阶段
        - name: Test
          run: |
            npm run ci-test
            npm run coverage
    
        - name: Publish to coveralls.io
          uses: coverallsapp/github-action@v1.1.2
          with:
            github-token: ${{ github.token }}
    

    原帖于Ones and Zeros

    【讨论】:

      猜你喜欢
      • 2021-11-21
      • 2021-05-07
      • 2021-06-13
      • 2016-11-08
      • 2020-10-16
      • 2018-03-14
      • 2016-05-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多