From 245539e33b1fb87004a33b3b45c4e8830c06a2b2 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Wed, 27 Jan 2021 14:59:58 +0100 Subject: [PATCH] Add more details on how to setup test reports on google cloud --- docs/reports.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/reports.md b/docs/reports.md index 540d5659..a4355569 100644 --- a/docs/reports.md +++ b/docs/reports.md @@ -27,6 +27,13 @@ First, install the sbt-munit plugin. addSbtPlugin("org.scalameta" % "sbt-munit" % "@VERSION@") ``` +and set the name of the bucket via: + +```scala +// build.sbt +ThisBuild / munitBucketName := Some("my-unique-bucket-name"), +``` + Next, setup up [Google Cloud authentication credentials](https://console.cloud.google.com/apis/credentials/serviceaccountkey). You should have a JSON file that looks like this. @@ -40,6 +47,8 @@ You should have a JSON file that looks like this. } ``` +You will need the `Storage Admin` role for the created service account. + Next, add the following two secret environment variables to your CI settings. - `GOOGLE_APPLICATION_CREDENTIALS_JSON`: the base64 encoded value of the JSON