Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 8 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,13 @@
name: CI

on: [ push, pull_request ]
on:
push:
branches: [ master ]
pull_request:

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest

# not setting up a matrix strategy because the project uses sbt-projectmatrix

steps:
- uses: actions/checkout@v5

- uses: coursier/cache-action@v6

- name: setup Java 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'oracle'
cache: 'sbt'

- name: setup SBT
uses: sbt/setup-sbt@v1

- name: build
run: sbt clean check coverage test

- name: test coverage
if: success()
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
run: sbt coverageReport coverageAggregate 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 }}
uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@f02d2d572f3070fba1fd22edfb02070e57a0651b # v7.0.0
2 changes: 1 addition & 1 deletion .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ permissions:

jobs:
submit:
uses: evolution-gaming/scala-github-actions/.github/workflows/dependency-graph.yml@2a50f1819b6fef2657ba802fd62612b7fc8450f0 # v6.4.0
uses: evolution-gaming/scala-github-actions/.github/workflows/dependency-graph.yml@f02d2d572f3070fba1fd22edfb02070e57a0651b # v7.0.0
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v4
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@f02d2d572f3070fba1fd22edfb02070e57a0651b # v7.0.0
secrets: inherit
with:
verify_sbt_command: 'clean; check; all test package'
Expand Down
7 changes: 0 additions & 7 deletions .scalafix.conf

This file was deleted.

13 changes: 8 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ lazy val commonSettings = Seq(
publishTo := Some(Resolver.evolutionReleases),
versionScheme := Some("semver-spec"),
versionPolicyIntention := Compatibility.BinaryCompatible,
versionPolicyIgnored ++= Seq(
// add libraries here that are known to be binary compatible, like:
// transitive dependency of pekko-stream (TLS support), not used by this project
// and not part of its API; 0.6.1 -> 0.7.1 is only breaking under PVP
"com.typesafe" %% "ssl-config-core"
),
)

lazy val root = project
Expand Down Expand Up @@ -147,12 +153,9 @@ lazy val `sequentially-metrics` = projectMatrix
.configureMatrix(asAkkaPekkoModule())

//used by evolution-gaming/scala-github-actions
addCommandAlias(
"check",
"all versionPolicyCheck Compile/doc scalafmtCheckAll scalafmtSbtCheck; scalafixEnable; scalafixAll --check",
)
addCommandAlias("check", "all versionPolicyCheck Compile/doc scalafmtCheckRepo")

addCommandAlias("fmtAll", "all scalafmtAll scalafmtSbt; scalafixEnable; scalafixAll")
addCommandAlias("fmt", "scalafmtRepo")

def asAkkaPekkoModule(
akkaDependencies: Seq[ModuleID] = Seq.empty,
Expand Down
11 changes: 8 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.1.2")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.4")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.7")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.2")

addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.2.0")

addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.3.0")

addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")

addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.8")

addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.11.0")