-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (43 loc) · 1.22 KB
/
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
41
42
43
44
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
scala: [2.12.14, 2.13.6]
name: Test ${{ matrix.os }} -- ${{ matrix.jdk }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: coursier/cache-action@v5
- uses: olafurpg/setup-scala@v12
with:
java-version: ${{ matrix.jdk }}
- uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: Set up environment
run: |
curl -Lo coursier https://git.io/coursier-cli && chmod +x coursier && ./coursier --help
java -version
shell: bash
- name: Check formatting
if: matrix.os != 'windows-latest'
run: |
./bin/scalafmt --test
shell: bash
- name: Compile and test jsonrpc4s
env:
SCALA_VERSION: ${{ matrix.scala }}
run: |
sbt ++$SCALA_VERSION! clean coverage test mimaReportBinaryIssues coverageAggregate
shell: bash