File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ name : check
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : olafurpg/setup-scala@v11
14
+ - run : sbt "ci"
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ ThisBuild / scalafixScalaBinaryVersion :=
3
3
4
4
ThisBuild / scalaVersion := " 2.13.6"
5
5
6
+ commands += Command .command(" ci" ) { s =>
7
+ s " clean " ::
8
+ s " clean-generated " ::
9
+ s " generate " ::
10
+ s
11
+ }
12
+
6
13
commands += Command .command(" generate" ) { s =>
7
14
s " generator/protocGenerate " ::
8
15
s " output/scalafix AdjustForScala3 " ::
@@ -30,8 +37,7 @@ lazy val output = project
30
37
name := " output" ,
31
38
scalaVersion := " 3.0.0" ,
32
39
Compile / scalafix / unmanagedSources :=
33
- (Compile / unmanagedSources)
34
- .value
40
+ (Compile / unmanagedSources).value
35
41
.filterNot(file => file.getParent().endsWith(" internal" ))
36
42
)
37
43
.dependsOn(`scalafix-rules` % ScalafixConfig )
You can’t perform that action at this time.
0 commit comments