-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (50 loc) · 1.21 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
name: Scala CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
SBT_OPTS: -Xms256m -Xmx756G -XX:+CMSClassUnloadingEnabled -XX:+UseSerialGC -XX:MaxMetaspaceSize=2G
DISABLE_SCALAFMT: true
jobs:
sbt-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- uses: actions/cache@v3
with:
path: |
~/.m2
~/.sbt
~/.ivy2/cache
key: ${{ runner.os }}-${{ hashFiles('build.sbt') }}
- name: Run tests
run: sbt test
compile-microsite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- name: Update package descriptions
run: sudo apt update
- name: Install jekyll
run: sudo apt -y install jekyll
- uses: actions/cache@v3
with:
path: |
~/.m2
~/.sbt
~/.ivy2/cache
key: ${{ runner.os }}-${{ hashFiles('build.sbt') }}
- name: Compile microsite
run: sbt docs/makeMicrosite