-
Notifications
You must be signed in to change notification settings - Fork 24
32 lines (32 loc) · 972 Bytes
/
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
name: CI
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: ["2.12.20", "2.13.15", "3.3.4"]
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v6
- uses: olafurpg/setup-scala@v11
with:
java-version: zulu@1.11
- run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck test doc
if: startsWith(matrix.scala, '3')
- run: sbt ++${{ matrix.scala }} clean scalafmtSbtCheck scalafmtCheck coverage test doc coverageReport coveralls
if: startsWith(matrix.scala, '2')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [build]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}