diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08b7acc..e533eb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,51 +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.16 - - 2.12.20 - - 3.3.5 - - 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() - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }} - run: sbt ++${{ matrix.scala }} coverageReport coveralls - - - name: slack - uses: homoluctus/slatify@master - if: failure() && github.ref == 'refs/heads/master' - with: - type: ${{ job.status }} - job_name: Build - url: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file + uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@dde27b9bd793d41d5aacf8fb74403c9de5da1146 # v6.3.0 + with: + scala_versions: '["2.13.16", "2.12.20", "3.3.5"]' + # TODO no sbt-scalafmt in this repo, so formatting was never checked + scalafmt_check: false diff --git a/project/plugins.sbt b/project/plugins.sbt index 3f758da..6d279c4 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.3.1") -addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9") addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2") addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")