Skip to content

tests: improve coverage #8

tests: improve coverage

tests: improve coverage #8

Workflow file for this run

name: Reusable SBT Job

Check failure on line 1 in .github/workflows/_sbt.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_sbt.yml

Invalid workflow file

(Line: 44, Col: 13): Unexpected symbol: '"cache-coursier"'. Located at position 8 within expression: inputs["cache-coursier"]
on:
workflow_call:
inputs:
java-version:
required: false
type: string
default: '17'
distribution:
required: false
type: string
default: 'temurin'
commands:
required: true
type: string
cache-coursier:
required: false
type: boolean
default: true
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sbt:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.2.2 (pin). Ref: Apache Pekko pin example.
- name: Set up JDK ${{ inputs.java-version }}
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v4.x (pin)
with:
distribution: ${{ inputs.distribution }}
java-version: ${{ inputs.java-version }}
cache: 'sbt'
- name: Cache Coursier (sbt/ivy/mill)
if: ${{ inputs["cache-coursier"] }}
uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7 (pin)
- name: Run SBT
shell: bash
run: sbt -batch ${{ inputs.commands }}