Skip to content

Merge pull request #120 from SimY4/update/sbt-ci-release-1.9.0 #549

Merge pull request #120 from SimY4/update/sbt-ci-release-1.9.0

Merge pull request #120 from SimY4/update/sbt-ci-release-1.9.0 #549

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@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 }}