From 1753da182e1a3f4aca87f4a772e8538f00faa24c Mon Sep 17 00:00:00 2001 From: regadas Date: Sat, 8 Oct 2022 12:07:54 -0400 Subject: [PATCH 1/2] Add github actions --- .github/workflows/ci.yaml | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..ad3cb785 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,63 @@ +name: ci +on: [push, pull_request] + +jobs: + checks: + runs-on: ubuntu-latest + steps: + - uses: "actions/checkout@v3" + - uses: actions/setup-java@v3 + with: + cache: "sbt" + distribution: "temurin" + java-version: "17" + - run: 'sbt "; +scalafmtCheckAll; scalafmtSbtCheck"' + mimaReport: + runs-on: ubuntu-latest + steps: + - uses: "actions/checkout@v3" + - uses: actions/setup-java@v3 + with: + cache: "sbt" + distribution: "temurin" + java-version: ${{matrix.java}} + - run: 'sbt "++${{matrix.scala}} mimaReportBinaryIssues"' + strategy: + matrix: + java: + - "8" + - "11" + - "17" + scala: + - "2.11.12" + - "2.12.15" + test: + runs-on: ubuntu-latest + steps: + - uses: "actions/checkout@v3" + - uses: actions/setup-java@v3 + with: + cache: "sbt" + distribution: "temurin" + java-version: ${{matrix.java}} + - run: 'sbt "++${{matrix.scala}} test"' + strategy: + matrix: + java: + - "8" + - "11" + - "17" + scala: + - "2.12.15" + - "2.13.8" + testWithCoverageReport: + runs-on: ubuntu-latest + steps: + - uses: "actions/checkout@v3" + - uses: actions/setup-java@v3 + with: + cache: "sbt" + distribution: "temurin" + java-version: 17 + - run: sbt coverage clean test coverageReport + - run: "bash <(curl -s https://codecov.io/bash)" From 96d69acbc046780276da737bbc8d5345d3fa2a53 Mon Sep 17 00:00:00 2001 From: regadas Date: Sat, 8 Oct 2022 12:11:19 -0400 Subject: [PATCH 2/2] Remove unused --- project/plugins.sbt | 1 - 1 file changed, 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 549fcc92..0c5ee57e 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,4 @@ addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.0") -addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3") addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.6") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.2") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")