Skip to content

Build and Test

Build and Test #482

Workflow file for this run

name: Build and Test
on: [ push, pull_request ]
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
- name: Build with sbt
run: sbt ++${{ matrix.scala }} build
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
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 }}