diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32fb3cb..e602b36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,51 +1,12 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [ master ] + pull_request: jobs: test: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - scala: - - 3.3.0 - - 2.13.11 - - 2.12.18 - - steps: - - uses: actions/checkout@v4 - - - uses: coursier/cache-action@v6 - - - name: Setup Java - uses: actions/setup-java@v4 - with: - java-version: "17" - distribution: "oracle" - cache: "sbt" - - - name: setup SBT - uses: sbt/setup-sbt@v1 - - - name: Check code formatting - run: sbt 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 }} - - - name: slack - uses: homoluctus/slatify@master - if: failure() && github.ref == 'refs/heads/master' - with: - type: ${{ job.status }} - job_name: Build - url: ${{ secrets.SLACK_WEBHOOK }} + uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@dde27b9bd793d41d5aacf8fb74403c9de5da1146 # v6.3.0 + with: + scala_versions: '["3.3.0", "2.13.11", "2.12.18"]' diff --git a/project/plugins.sbt b/project/plugins.sbt index 4360632..be65d29 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8") -addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15") - addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.3") addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")