-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (47 loc) · 1.12 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
name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
build:
name: Test
strategy:
matrix:
scala:
- 2.13.11
- 3.3.0
java:
- corretto@1.11
- corretto@1.17
os:
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- name: Branch Checkout
uses: actions/checkout@v2.5.0
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.java }}
- name: Cache
uses: actions/cache@v2
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Test (${{ matrix.scala }}, ${{ matrix.java }})
run: sbt ++${{ matrix.scala }} fullTest
- name: Upload To Codecov
uses: codecov/codecov-action@v2