-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.12 KB
/
build-and-test.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
name: Build and Test
on:
pull_request:
branches:
- main
- series/**
push:
branches:
- main
- series/**
- feature/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [2.13.x, 3.3.x]
java: [17]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Build with sbt
run: sbt ++${{ matrix.scala }} build
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: always()
with:
report_paths: '**/target/test-reports/*.xml'
require_tests: true
check_name: '${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}'
- name: Create Test Summary
uses: test-summary/action@v2
with:
paths: '**/target/test-reports/*.xml'
if: always()
- name: Code Coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}