Skip to content

Add test-summary to gh workflow #7

Add test-summary to gh workflow

Add test-summary to gh workflow #7

Workflow file for this run

name: Build the app
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # for checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: japgolly/[email protected]
with:
java-version: 'adopt:1.11.0-11'
node-version: '16.7.0'
- name: Check code format
run: sbt scalafmtCheckAll
- name: Compile
run: CI=true sbt +compile
- name: Run tests
run: CI=true sbt +test
- name: Test summary
if: always() # Always run, even if previous steps failed
uses: test-summary/action@v2
with:
paths: "**/target/test-reports/*.xml"