diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec60537..72f4bdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,42 +1,14 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [ master ] + pull_request: jobs: test: - - runs-on: ubuntu-latest - - strategy: - matrix: - scala: - - 2.13.18 - - 3.3.7 - - steps: - - uses: actions/checkout@v4 - - - uses: coursier/cache-action@v6 - - - name: setup Java 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'oracle' - cache: 'sbt' - - - name: setup SBT - uses: sbt/setup-sbt@v1 - - - name: check code ${{ matrix.scala }} - run: sbt ++${{ matrix.scala }} clean check - - - name: build ${{ matrix.scala }} - run: sbt ++${{ matrix.scala }} clean coverage test - - - name: test coverage - if: success() - run: sbt ++${{ matrix.scala }} coverageAggregate coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} + uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@dde27b9bd793d41d5aacf8fb74403c9de5da1146 # v6.3.0 + with: + scala_versions: '["2.13.18", "3.3.7"]' + # TODO sbt-scalafmt is in plugins.sbt but there is no .scalafmt.conf, so formatting was never checked + scalafmt_check: false diff --git a/build.sbt b/build.sbt index a15f427..c77e8f9 100644 --- a/build.sbt +++ b/build.sbt @@ -16,6 +16,8 @@ crossScalaVersions := Seq("2.13.18", "3.3.7") scalaVersion := crossScalaVersions.value.head +versionPolicyIntention := Compatibility.BinaryCompatible + publishTo := Some(Resolver.evolutionReleases) libraryDependencies ++= Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index 955be92..09d13f7 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.4") -addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") - addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1") addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9")