Skip to content

Commit

Permalink
Drop Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Z1kkurat committed Oct 24, 2023
1 parent 80a334c commit 95e998b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
matrix:
scala:
- 2.13.12
- 2.12.18

steps:
- uses: actions/checkout@v2
Expand All @@ -23,32 +22,28 @@ jobs:
java-version: openjdk@1.11

- name: Run tests ${{ matrix.scala }}
if: success() && matrix.scala == '2.13.12'
if: success()
run: sbt ++${{ matrix.scala }} clean coverage test docs/mdoc

- name: Run tests ${{ matrix.scala }}
if: success() && matrix.scala != '2.13.12'
run: sbt ++${{ matrix.scala }} clean coverage test

- name: Report test coverage
if: success()
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: sbt ++${{ matrix.scala }} coverageReport coverageAggregate coveralls

- name: Publish documentation / Setup Node
if: success() && matrix.scala == '2.13.12'
if: success()
uses: actions/setup-node@v2-beta
with:
node-version: '12.x'

- name: Publish documentation / Get yarn cache
if: success() && matrix.scala == '2.13.12'
if: success()
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Publish documentation / Cache dependencies
if: success() && matrix.scala == '2.13.12'
if: success()
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
Expand All @@ -57,17 +52,17 @@ jobs:
${{ runner.os }}-website-
- name: Publish documentation / Install dependencies
if: success() && matrix.scala == '2.13.12'
if: success()
working-directory: ./website
run: yarn install --frozen-lockfile

- name: Publish documentation / Build site
if: success() && matrix.scala == '2.13.12'
if: success()
working-directory: ./website
run: yarn build

- name: Publish documentation / Deploy
if: success() && matrix.scala == '2.13.12' && github.ref == 'refs/heads/master'
if: success() && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ lazy val commonSettings = Seq(
organizationName := "Evolution Gaming",
organizationHomepage := Some(url("https://evolution.com")),
publishTo := Some(Resolver.evolutionReleases),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.12", "2.12.18"),
scalaVersion := "2.13.12",
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
releaseCrossBuild := true,
testFrameworks += new TestFramework("munit.Framework"),
testOptions += Tests.Argument(new TestFramework("munit.Framework"), "+l"),
resolvers ++= Resolver.sonatypeOssRepos("public") :+ Resolver.bintrayRepo("evolutiongaming", "maven"),
Expand Down

0 comments on commit 95e998b

Please sign in to comment.