-
Notifications
You must be signed in to change notification settings - Fork 9
69 lines (68 loc) · 1.89 KB
/
ci.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on: [push, pull_request]
env:
CI: true
CI_SNAPSHOT_RELEASE: +publishSigned
SCALA_VERSION: 2.12.11
jobs:
validate:
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [adopt@1.8, adopt@1.11, adopt@1.14]
scala: [2.12.11, 2.13.1]
env:
SCALA_VERSION: ${{ matrix.scala }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
with:
java-version: ${{ matrix.java }}
- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: sbt-coursier-cache
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Compile
run: sbt ++$SCALA_VERSION test:compile
- name: Check compatibility
run: sbt ++$SCALA_VERSION mimaReportBinaryIssues
- name: Test
run: sbt ++$SCALA_VERSION test
- name: Scaladoc
run: sbt ++$SCALA_VERSION doc
# docs:
# name: Doc Site
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: olafurpg/setup-scala@v10
# - name: Cache Coursier
# uses: actions/cache@v1
# with:
# path: ~/.cache/coursier
# key: sbt-coursier-cache
# - name: Cache SBT
# uses: actions/cache@v1
# with:
# path: ~/.sbt
# key: sbt-${{ hashFiles('**/build.sbt') }}
# - name: Set up Ruby 2.6
# uses: actions/setup-ruby@v1
# with:
# ruby-version: 2.6
# - name: Install Jekyll
# run: |
# gem install bundler
# bundle install --gemfile=site/Gemfile
# - name: Build project site
# run: sbt ++$SCALA_VERSION site/makeMicrosite