-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (53 loc) · 1.79 KB
/
basic.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
49
50
51
52
53
54
55
56
57
58
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
on: [push, pull_request]
env:
CI: true
SCALA_VERSION: 2.13.2
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: Scala ${{ matrix.scala }}, Java ${{ matrix.java }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: [2.13.2]
env:
SCALA_VERSION: ${{ matrix.scala }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v7
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: Build the docker-compose stack
run: docker-compose up -d
- name: Check formatting
if: startsWith(matrix.scala, '2.13.2') && (matrix.java == '[email protected]')
run: sbt ++$SCALA_VERSION scalafmtCheckAll
- name: Compile
run: sbt ++$SCALA_VERSION test:compile
- name: Check compatibility
run: sbt ++$SCALA_VERSION mimaReportBinaryIssues
- name: Check unused dependencies
run: sbt ++$SCALA_VERSION unusedCompileDependenciesTest
- name: Test
run: sbt ++$SCALA_VERSION test