我正在尝试使用CircleCI和Firebase运行Espresso测试。我的项目文件夹结构如下面的快照所示。将client-secret.json保留在2个位置。我收到以下错误。
Yml文件中的命令如下-
- run:
name: Authenticate with Google Cloud
command: gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file ../client-secret.json
以下是我观察到的错误-
#!/bin/bash -eo pipefail
gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file ../client-secret.json
ERROR: (gcloud.auth.activate-service-account) Could not read json file ../client-secret.json: No JSON object could be decoded
Exited with code 1
#!/bin/bash -eo pipefail
gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file /../client-secret.json
ERROR: (gcloud.auth.activate-service-account) Unable to read file [/../client-secret.json]: [Errno 2] No such file or directory: '/../client-secret.json'
Exited with code 1
#!/bin/bash -eo pipefail
gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file client-secret.json
ERROR: (gcloud.auth.activate-service-account) Unable to read file [client-secret.json]: [Errno 2] No such file or directory: 'client-secret.json'
Exited with code 1
#!/bin/bash -eo pipefail
gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file client-secret.json
ERROR: (gcloud.auth.activate-service-account) Unable to read file [client-secret.json]: [Errno 2] No such file or directory: 'client-secret.json'
Exited with code 1
#!/bin/bash -eo pipefail
gcloud auth activate-service-account firebase-adminsdk-twj99@mytaxiapptest.iam.gserviceaccount.com --key-file /root/client-secret.json
ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/client-secret.json: No JSON object could be decoded
Exited with code 1
能不能指出我应将client-secret.json文件保存在哪里以及如何提供确切路径?