Skip to content

Commit 2935f76

Browse files
committed
switch to v4 release workflow
1 parent 58674f8 commit 2935f76

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ jobs:
1515
- 3.3.7
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- uses: coursier/cache-action@v6
2121

22-
- name: scala
23-
uses: olafurpg/setup-scala@v11
22+
- name: setup Java 11
23+
uses: actions/setup-java@v4
2424
with:
25-
java-version: [email protected]
25+
java-version: '11'
26+
distribution: 'oracle'
27+
cache: 'sbt'
28+
29+
- name: setup SBT
30+
uses: sbt/setup-sbt@v1
31+
32+
- name: check code ${{ matrix.scala }}
33+
run: sbt ++${{ matrix.scala }} clean check
2634

2735
- name: build ${{ matrix.scala }}
28-
run: sbt ++${{ matrix.scala }} clean coverage test versionPolicyCheck
36+
run: sbt ++${{ matrix.scala }} clean coverage test
2937

3038
- name: test coverage
3139
if: success()
3240
run: sbt ++${{ matrix.scala }} coverageAggregate coveralls
3341
env:
3442
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3543
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
36-
37-
- name: slack
38-
uses: homoluctus/slatify@master
39-
if: failure() && github.ref == 'refs/heads/master'
40-
with:
41-
type: ${{ job.status }}
42-
job_name: Build
43-
url: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Publish new Release
22

33
on:
4-
release:
5-
types: [published]
6-
branches: [master]
4+
push:
5+
tags:
6+
- 'v*'
77

88
jobs:
99
release:
10-
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v1
10+
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v4
1111
secrets: inherit

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ lazy val commonSettings = Seq(
2121
Compile / doc / scalacOptions ++= Seq("-groups", "-implicits", "-no-link-warnings"),
2222
publishTo := Some(Resolver.evolutionReleases),
2323
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
24-
releaseCrossBuild := true,
2524
scalacOptsFailOnWarn := Some(false),
2625
scalacOptions ++= crossSettings(
2726
scalaVersion.value,
@@ -32,7 +31,7 @@ lazy val commonSettings = Seq(
3231
val alias: Seq[sbt.Def.Setting[?]] =
3332
// addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
3433
addCommandAlias("check", "show version") ++
35-
addCommandAlias("build", "+all compile test")
34+
addCommandAlias("build", "all compile test")
3635

3736
lazy val root = (project in file("."))
3837
.settings(name := "scassandra")

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.1")
22

33
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15")
44

5-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
5+
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")
66

77
addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9")
88

0 commit comments

Comments
 (0)