Skip to content

Enable HTML test report #2383

Enable HTML test report

Enable HTML test report #2383

name: CI
on:
pull_request:
push:
jobs:
build:
strategy:
fail-fast: false
matrix:
entry:
- { os: ubuntu-latest, java: 11 }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Style check
run: sbt scalafmtCheckAll
- name: Set SBT_OPTS
# Needed to extend the JVM memory size to avoid OutOfMemoryError for HTML test report
run: echo "SBT_OPTS=-Xmx2G" >> $GITHUB_ENV
- name: Integ Test
run: sbt integtest/integration
- name: Upload test report
if: always() # Ensures the artifact is saved even if tests fail
uses: actions/upload-artifact@v3
with:
name: test-reports
path: target/test-reports # Adjust this path if necessary