Skip to content

Commit 2208d50

Browse files
authored
D:17749: Add runAllChecks to Business customer repos (#226)
* D:17749: Add runAllChecks to Business customer repos
1 parent 7c9e5e6 commit 2208d50

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,29 @@ In the context of this service we use the following acronyms:
8888

8989
* [URL]: Uniform Resource Locator
9090

91+
### All tests and checks
92+
93+
> `sbt runAllChecks`
94+
95+
This is an sbt command alias specific to this project. It will run
96+
97+
- clean
98+
- compile
99+
- unit tests
100+
- and produce a coverage report.
101+
102+
You can view the coverage report in the browser by pasting the generated url.
103+
104+
#### Installing sbt plugin to check for library updates.
105+
To check for dependency updates locally you will need to create this file locally ~/.sbt/1.0/plugins/sbt-updates.sbt
106+
and paste - addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3") - into the file.
107+
Then run:
108+
109+
> `sbt dependencyUpdates `
110+
111+
To view library update suggestions - this does not cover sbt plugins.
112+
It is not advised to install the plugin for the project.
113+
91114

92115
License
93116
-------

build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ lazy val microservice: Project = Project(appName, file("."))
6565
)
6666
)
6767
.disablePlugins(JUnitXmlReportPlugin)
68+
69+
addCommandAlias("runAllChecks", ";clean;compile;coverage;test;coverageReport")
70+

project/AppDependencies.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ import sbt.*
1919
object AppDependencies {
2020
import play.sbt.PlayImport.ws
2121

22-
private val bootstrapPlayVersion = "10.3.0"
22+
private val bootstrapPlayVersion = "10.4.0"
2323

2424
val compile: Seq[ModuleID] = Seq(
2525
ws,
2626
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % bootstrapPlayVersion,
2727
"uk.gov.hmrc" %% "domain-play-30" % "11.0.0",
2828
"uk.gov.hmrc" %% "play-partials-play-30" % "10.2.0",
29-
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "12.19.0",
29+
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "12.20.0",
3030
"uk.gov.hmrc" %% "http-caching-client-play-30" % "12.2.0",
3131
)
3232

0 commit comments

Comments
 (0)