set up codacy coverage #640
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scala CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 #temporary not latest because 24 is broken | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 11 | |
cache: sbt | |
- name: Run tests | |
run: sbt clean coverage test coverageReport | |
- name: Codacy Coverage Reporter | |
uses: codacy/[email protected] | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
#coverage-reports: target/scala-2.13/scoverage-data/scoverage.coverage | |
# or a comma-separated list for multiple reports | |
# coverage-reports: <PATH_TO_REPORT>, <PATH_TO_REPORT> |