-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (46 loc) · 1.09 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
name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
build:
name: Test
strategy:
matrix:
scala:
- 2.13.15
- 3.3.4
java:
os:
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- name: Branch Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
- name: Cache
uses: actions/cache@v4
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 }} build
- name: Upload To Codecov
uses: codecov/codecov-action@v2