forked from loafle/openapi-generator-original
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
name: Gradle tests (Java samples)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/petstore/java/**'
|
|
- 'samples/openapi3/client/petstore/java/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/petstore/java/**'
|
|
- 'samples/openapi3/client/petstore/java/**'
|
|
env:
|
|
GRADLE_VERSION: 8.7
|
|
|
|
jobs:
|
|
build:
|
|
name: Gradle tests
|
|
runs-on: ubuntu-latest
|
|
container: gradle:jdk11
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
sample:
|
|
- samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8
|
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
|
- samples/openapi3/client/petstore/java/jersey2-java8
|
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
|
- samples/client/petstore/java/jersey2-java8
|
|
- samples/client/petstore/java/okhttp-gson
|
|
- samples/client/petstore/java/okhttp-gson-group-parameter
|
|
- samples/client/petstore/java/webclient-swagger2
|
|
- samples/client/petstore/java/native
|
|
- samples/client/petstore/java/native-jakarta
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 11
|
|
cache: gradle
|
|
# Cache Gradle Dependencies
|
|
- name: Setup Gradle Dependencies Cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
|
|
|
# Cache Gradle Wrapper
|
|
- name: Setup Gradle Wrapper Cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
- name: Build
|
|
working-directory: ${{ matrix.sample }}
|
|
run: /bin/sh gradlew build -x test
|