Skip to content

Commit 8f84ea4

Browse files
committed
Run CI
1 parent 8167677 commit 8f84ea4

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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"

build.sbt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ ThisBuild / scalafixScalaBinaryVersion :=
33

44
ThisBuild / scalaVersion := "2.13.6"
55

6+
commands += Command.command("ci") { s =>
7+
s"clean" ::
8+
s"clean-generated" ::
9+
s"generate" ::
10+
s
11+
}
12+
613
commands += Command.command("generate") { s =>
714
s"generator/protocGenerate" ::
815
s"output/scalafix AdjustForScala3" ::
@@ -30,8 +37,7 @@ lazy val output = project
3037
name := "output",
3138
scalaVersion := "3.0.0",
3239
Compile / scalafix / unmanagedSources :=
33-
(Compile / unmanagedSources)
34-
.value
40+
(Compile / unmanagedSources).value
3541
.filterNot(file => file.getParent().endsWith("internal"))
3642
)
3743
.dependsOn(`scalafix-rules` % ScalafixConfig)

0 commit comments

Comments
 (0)