首页 > 解决方案 > 忽略在 pubspec.yaml 中找不到资产的文件或变体

问题描述

我正在尝试对拉取请求运行颤振测试,并且我在 lib 目录中有 .env 文件,我 git 忽略但在 Github 操作上尝试运行作业时出现此错误。因为在里面pubspec.yaml它被列为资产。Github 操作结果我知道为什么会出现错误,但我不知道如何告诉pubspec.yaml忽略该文件,因为它对其正在执行的作业没有影响。

标签: fluttergithub-actions

解决方案


create a script that creates the file with the data and execute the bash script before running flutter test.


推荐阅读