Skip to content

Commit 42beab5

Browse files
stasimussshevchenkomr-git
authored
Adopt shared Scala CI workflow (#244)
* Adopt shared Scala CI workflow * Drop unused sbt-coveralls plugin * Collapse blank line left by plugin removal * Pin shared workflow and drop secrets inherit * Re-pin shared workflow to v6.2.0 * Update CI workflow to use version 6.3.0 --------- Co-authored-by: sshevchenko <sshevchenko@evolution.com> Co-authored-by: Mareks Rampāns <8796159+mr-git@users.noreply.github.com>
1 parent ac09948 commit 42beab5

2 files changed

Lines changed: 5 additions & 45 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,8 @@ on:
77

88
jobs:
99
test:
10-
11-
runs-on: ubuntu-latest
12-
13-
strategy:
14-
matrix:
15-
scala:
16-
- 2.13.18
17-
- 3.3.7
18-
19-
steps:
20-
- uses: actions/checkout@v4
21-
22-
- uses: coursier/cache-action@v6
23-
24-
- name: setup Java 17
25-
uses: actions/setup-java@v4
26-
with:
27-
java-version: '17'
28-
distribution: 'oracle'
29-
cache: 'sbt'
30-
31-
- name: setup SBT
32-
uses: sbt/setup-sbt@v1
33-
34-
- name: check code ${{ matrix.scala }}
35-
run: sbt ++${{ matrix.scala }} clean check
36-
37-
- name: build ${{ matrix.scala }}
38-
run: sbt ++${{ matrix.scala }} clean coverage test
39-
40-
- name: test coverage
41-
if: success()
42-
env:
43-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
44-
run: sbt ++${{ matrix.scala }} coverageReport coverageAggregate coveralls
45-
46-
- name: slack
47-
uses: homoluctus/slatify@master
48-
if: failure() && github.ref == 'refs/heads/master'
49-
with:
50-
type: ${{ job.status }}
51-
job_name: Build
52-
url: ${{ secrets.SLACK_WEBHOOK }}
10+
uses: evolution-gaming/scala-github-actions/.github/workflows/ci.yml@dde27b9bd793d41d5aacf8fb74403c9de5da1146 # v6.3.0
11+
with:
12+
scala_versions: '["2.13.18", "3.3.7"]'
13+
# TODO no sbt-scalafmt in this repo, so formatting was never checked
14+
scalafmt_check: false

project/plugins.sbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.4.4")
22

3-
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15")
4-
53
addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.2.0")
64

75
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.1.2")

0 commit comments

Comments
 (0)