Skip to content

refactor scala client server workflow for testing #1

refactor scala client server workflow for testing

refactor scala client server workflow for testing #1

name: Samples Scala/sbt client

Check failure on line 1 in .github/workflows/samples-scala-client.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/samples-scala-client.yaml

Invalid workflow file

(Line: 1, Col: 3): Required property is missing: jobs
on:
push:
paths:
- 'samples/client/petstore/scala**'
pull_request:
paths:
- 'samples/client/petstore/scala**'
jobs:
build:
name: Build sbt/Scala
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sample:
# clients
- samples/client/petstore/scalaz
- samples/client/petstore/scala-pekko
- samples/client/petstore/scala-http4s
- samples/client/petstore/scala-sttp4-jsoniter
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 11
- name: Setup sbt launcher
uses: sbt/setup-sbt@v1
- name: Cache maven dependencies
uses: actions/cache@v4
env:
cache-name: maven-repository
with:
path: |
~/.ivy2
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }}
- name: Build and test
working-directory: ${{ matrix.sample }}
run: sbt -v +test