diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 099d824..92bd63f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: scalafmt with Gradle + run: ./gradlew spotlessCheck - name: Test with Gradle run: ./gradlew test - name: Release Packages into Github Packages diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e117fab..5c763a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - name: scalafmt with Gradle + run: ./gradlew spotlessCheck - name: Test with Gradle run: ./gradlew test diff --git a/src/main/scala/pro/civitaspo/digdag/plugin/ecs_task/register/EcsTaskRegisterOperator.scala b/src/main/scala/pro/civitaspo/digdag/plugin/ecs_task/register/EcsTaskRegisterOperator.scala index eb12f23..f508f30 100644 --- a/src/main/scala/pro/civitaspo/digdag/plugin/ecs_task/register/EcsTaskRegisterOperator.scala +++ b/src/main/scala/pro/civitaspo/digdag/plugin/ecs_task/register/EcsTaskRegisterOperator.scala @@ -170,7 +170,6 @@ class EcsTaskRegisterOperator(operatorName: String, context: OperatorContext, sy Optional.of(cd) } - protected def configureDependsOn(c: Config): Optional[ContainerDependency] = { if (c.isEmpty) return Optional.absent() @@ -187,8 +186,7 @@ class EcsTaskRegisterOperator(operatorName: String, context: OperatorContext, sy protected def configureEphemeralStorage(c: Config): Optional[EphemeralStorage] = { if (c.isEmpty) return Optional.absent() - val sizeInGiB - : Int = c.get("size_in_gi_b", classOf[Int]) + val sizeInGiB: Int = c.get("size_in_gi_b", classOf[Int]) val es: EphemeralStorage = new EphemeralStorage() es.setSizeInGiB(sizeInGiB)