forked from loafle/openapi-generator-original
39 lines
1009 B
YAML
39 lines
1009 B
YAML
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
|