diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..a8477c4 --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: setup-scala + uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.11 + - name: tests + run: | + sbt clean +test + + formatting: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: setup-scala + uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.11 + - name: Formatting + run: | + sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eabf3e7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release +on: + push: + branches: [master, main] + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v10 + - uses: olafurpg/setup-gpg@v3 + - run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml new file mode 100644 index 0000000..7dcbdf2 --- /dev/null +++ b/.github/workflows/scala-steward.yml @@ -0,0 +1,16 @@ +name: scala-steward + +# This workflow will launch everyday at 00:00 +on: + schedule: + - cron: '0 0 * * *' + +jobs: + scala-steward: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Scala Steward Github Action + uses: scala-steward-org/scala-steward-action@v2.11.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d8dde8a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: scala -scala: - - 2.11.12 - - 2.12.12 - - 2.13.3 -script: - - sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport -after_success: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 33109a5..cb41e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- Replace Bintray by Maven Central +- Configure Github Actions && sbt-ci-release +- Remove TravisCI + ## [v1.0.1] 2020-10-31 - **Update Scala 2.13 and 2.12** diff --git a/build.sbt b/build.sbt index bdc33e4..c300511 100644 --- a/build.sbt +++ b/build.sbt @@ -26,6 +26,16 @@ libraryDependencies ++= Seq( scalatestPlus ) -// sbt-bintray options -licenses += ("MIT", url("http://opensource.org/licenses/MIT")) -bintrayPackageLabels := Seq("JWT", "Scala") +inThisBuild(List( + organization := "com.guizmaii", + homepage := Some(url("https://github.com/guizmaii/scala-nimbus-jose-jwt")), + licenses := List("MIT" -> url("http://opensource.org/licenses/MIT")), + developers := List( + Developer( + "guizmaii", + "Jules Ivanic", + "jules.ivanic@gmail.com", + url("https://blog.jules-ivanic.com/#/") + ) + ) +)) \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index edf8f06..99815a6 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,5 @@ -addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.2") -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") -addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") -addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1") -addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17") +addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.2") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") +addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17") +addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")