Skip to content

Commit

Permalink
Use both.sh script in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdziuban committed Mar 21, 2024
1 parent 0bd24b1 commit 0e9c903
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions both.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ function mimaReport() {
sbtSequential mimaReportBinaryIssues
}

function docs() {
sbtParallel docs/mdoc
}

$operation

0 comments on commit 0e9c903

Please sign in to comment.