File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ # Format the codebase for the first time
2+ b049841d5707d5bd87be516d8cda7be2a7585eae
Original file line number Diff line number Diff line change 4949
5050 - run : ./mill -i -k __.mimaReportBinaryIssues
5151
52+ check-formatting :
53+ runs-on : ubuntu-latest
54+ steps :
55+ - uses : actions/checkout@v3
56+ with :
57+ fetch-depth : 0
58+
59+ - uses : actions/setup-java@v3
60+ with :
61+ distribution : ' temurin'
62+ java-version : 8
63+
64+ - run : ./mill -i -k __.checkFormat
65+
5266 publish-sonatype :
5367 if : github.repository == 'com-lihaoyi/os-lib' && contains(github.ref, 'refs/tags/')
5468 needs : test
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import $ivy.`com.github.lolgab::mill-mima::0.0.13`
66import mill ._
77import mill .define .{Task , Target }
88import mill .scalalib ._
9+ import mill .scalalib .scalafmt ._
910import mill .scalanativelib ._
1011import mill .scalalib .publish ._
1112import mill .scalalib .api .ZincWorkerUtil
@@ -124,7 +125,8 @@ trait SafeDeps extends ScalaModule {
124125 }
125126}
126127
127- trait OsLibModule extends CrossScalaModule with PublishModule with AcyclicModule with SafeDeps {
128+ trait OsLibModule extends CrossScalaModule with PublishModule with AcyclicModule with SafeDeps
129+ with ScalafmtModule {
128130 def publishVersion = VcsVersion .vcsState().format()
129131 def pomSettings = PomSettings (
130132 description = artifactName(),
You can’t perform that action at this time.
0 commit comments