-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 925 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: andxor
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8, 11, 17, 21]
scala: [2, 3]
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Test
run: sbt test
working-directory: scala-${{ matrix.scala }}
- name: Check binary compatibility
run: sbt mimaReportBinaryIssues
working-directory: scala-${{ matrix.scala }}
- name: Build docs
if: matrix.scala == '2' && matrix.java == '21'
run: sbt docs/mdoc
working-directory: scala-${{ matrix.scala }}