我使用 very_good_workflows 操作在我的应用程序和项目中包含的所有本地包上递归运行测试。
我想在运行所有测试后生成并上传 codeCov 文件,但收到错误消息,没有此类文件存在。
这是我当前的设置:
name: Flutter CI
# This workflow is triggered on pushes and pull requests to the repository.
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
# Install very good cli
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
coverage_excludes: '*.g.dart *.freezed.dart'
flutter_channel: 'stable'
flutter_version: "3.13.x"
test_recursion: true
min_coverage: 70
visualize:
needs: build
runs-on: ubuntu-latest
steps:
# Check out repository
- uses: actions/checkout@v3
# Setup the flutter environment
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.13.x"
# Upload coverage report to Codecov
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.MY_CODECOV_TOKEN }}
在成功运行非常好的工作流程后,是否有人成功将代码覆盖率文件上传到 codecov?