From 0e9c903454bfe63c811308ea791fa2cc426c4b2c Mon Sep 17 00:00:00 2001 From: Matt Dziuban Date: Thu, 21 Mar 2024 10:12:03 -0400 Subject: [PATCH] Use `both.sh` script in CI. --- .github/workflows/ci.yml | 27 ++++++++++----------------- both.sh | 4 ++++ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ee616a..a18ac24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,28 +12,21 @@ jobs: strategy: fail-fast: false matrix: - scala: [2.13.12, 3.3.1] java: [8, 11, 17, 21] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{ matrix.java }} + cache: sbt - - name: Cache sbt - uses: actions/cache@v2 - with: - path: | - ~/.sbt - ~/.ivy2/cache - ~/.coursier/cache/v1 - ~/.cache/coursier/v1 - key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} + - name: Test + run: ./both.sh test + + - name: Check binary compatibility + run: ./both.sh mimaReport - - name: sbt test - run: | - scalaV="${{ matrix.scala }}" - cd "scala-${scalaV%%.*}" - sbt "++$scalaV" test + - name: Build docs + run: ./both.sh docs diff --git a/both.sh b/both.sh index 9de1d60..905cea6 100755 --- a/both.sh +++ b/both.sh @@ -51,4 +51,8 @@ function mimaReport() { sbtSequential mimaReportBinaryIssues } +function docs() { + sbtParallel docs/mdoc +} + $operation