-
Notifications
You must be signed in to change notification settings - Fork 18
76 lines (76 loc) · 2.17 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
70
71
72
73
74
75
76
name: CI
on: [push, pull_request]
env:
CI: true
CI_SNAPSHOT_RELEASE: +publishSigned
SCALA_VERSION: 2.13.10
MUNIT_FLAKY_OK: true
jobs:
validate:
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
java: [[email protected]]
scala: [2.13.10]
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@v2
with:
path: ~/.cache/coursier
key: sbt-coursier-cache
- name: Cache SBT
uses: actions/cache@v2
with:
path: ~/.sbt
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Check copyright headers
run: sbt ++$SCALA_VERSION headerCheck
- name: Compile
run: sbt ++$SCALA_VERSION test:compile
- name: Start docker-compose
run: docker-compose up -d
- name: Test
run: sbt ++$SCALA_VERSION test
- name: Scaladoc
run: sbt ++$SCALA_VERSION doc
docs:
name: Doc Site
runs-on: ubuntu-20.04
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@v2
with:
path: ~/.sbt
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Check formatting
run: sbt ++$SCALA_VERSION scalafmtCheckAll
- 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: Start docker-compose
run: docker-compose up -d
- name: Build project site
run: sbt ++$SCALA_VERSION site/makeMicrosite