Skip to content

Update sbt to 1.10.6 in main #189

Update sbt to 1.10.6 in main

Update sbt to 1.10.6 in main #189

Workflow file for this run

name: "Build and unit tests"
on:
push:
tags:
- "**"
branches:
- main
pull_request:
env:
JAVA_VERSION: openjdk@1.11
SCALA_VERSION: "2.13"
GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
jobs:
build-and-test:
name: "Unit tests"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: ${{ env.JAVA_VERSION }}
- name: Check formatting
run: sbt scalafmtCheckAll
- name: Compile and test
run: sbt coverage test
- name: Generate code coverage reports
if: always()
run: sbt coverageReport coverageAggregate
- name: Publish Backend Unit Test Results
if: always()
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: "target/test-reports/**/TEST-*.xml"
check_run_annotations_branch: "*"