Skip to content

Commit

Permalink
Merge pull request #302 from tgodzik/update-reports
Browse files Browse the repository at this point in the history
Add more details on how to setup test reports on google cloud
  • Loading branch information
tgodzik authored Jan 28, 2021
2 parents ed2c414 + 245539e commit 42d9ef4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 42d9ef4

Please sign in to comment.