-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (46 loc) · 1.21 KB
/
build.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
41
42
43
44
45
46
47
48
name: build
on:
push:
paths-ignore:
- '**.md'
branches-ignore:
- "gh-pages"
pull_request:
paths-ignore:
- '**.md'
branches-ignore:
- "gh-pages"
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
java:
os:
- ubuntu-latest
- macOS-latest
fail-fast: false
steps:
- name: Configure git
run: "git config --global core.autocrlf false"
shell: bash
- uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: coursier/cache-action@v5
- uses: olafurpg/setup-scala@v12
with:
java-version: ${{matrix.java}}
- name: Compile, test and check binary compatibility
run: "sbt -batch clean +test +mimaReportBinaryIssues"
shell: bash
- name: Test with coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '[email protected]' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: "sbt -batch coverage test coverageAggregate coveralls"
shell: bash