diff --git a/.github/workflows/samples-java-sbt.yaml b/.github/workflows/samples-java-sbt.yaml new file mode 100644 index 000000000000..3c4dd3620d3a --- /dev/null +++ b/.github/workflows/samples-java-sbt.yaml @@ -0,0 +1,38 @@ +name: Samples Java (sbt) + +on: + push: + paths: + - 'samples/client/petstore/java/okhttp-gson/**' + pull_request: + paths: + - 'samples/client/petstore/java/okhttp-gson/**' +jobs: + build: + name: Build sbt/Java client, servers + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sample: + # clients + - samples/client/petstore/java/okhttp-gson + 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 diff --git a/.github/workflows/samples-scala.yaml b/.github/workflows/samples-scala.yaml index f57d3c832c93..91b9b864f687 100644 --- a/.github/workflows/samples-scala.yaml +++ b/.github/workflows/samples-scala.yaml @@ -5,12 +5,10 @@ on: paths: - 'samples/client/petstore/scala**' - 'samples/server/petstore/scala**' - - 'samples/client/petstore/java/okhttp-gson/**' pull_request: paths: - 'samples/client/petstore/scala**' - 'samples/server/petstore/scala**' - - 'samples/client/petstore/java/okhttp-gson/**' jobs: build: name: Build sbt/Scala client, servers @@ -20,7 +18,6 @@ jobs: matrix: sample: # clients - - samples/client/petstore/java/okhttp-gson - samples/client/petstore/scalaz - samples/client/petstore/scala-pekko - samples/client/petstore/scala-http4s