[Java][CI] fail fast, add path (#10570)

* fail fast, add path

* include more samples for testing

* remove path to trigger build

* Revert "remove path to trigger build"

This reverts commit c7f4c0a4c0f4d812b006bf2794a32304eded5df7.

* remove samples
This commit is contained in:
William Cheng 2021-10-09 18:31:41 +08:00 committed by GitHub
parent 331b61dc1c
commit c51f2eb8fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,19 @@
name: Gradle tests name: Gradle tests (Java samples)
on: on:
push: push:
branches: branches:
- master - master
- '[5-9]+.[0-9]+.x' - '[5-9]+.[0-9]+.x'
- "java*"
paths:
- 'samples/client/petstore/java/**'
pull_request: pull_request:
branches: branches:
- master - master
- '[5-9]+.[0-9]+.x' - '[5-9]+.[0-9]+.x'
paths:
- 'samples/openapi3/client/petstore/java/**'
env: env:
GRADLE_VERSION: 7.2 GRADLE_VERSION: 7.2
@ -18,7 +23,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: gradle:jdk8 container: gradle:jdk8
strategy: strategy:
fail-fast: false fail-fast: true
matrix: matrix:
sample: sample:
- samples/client/petstore/java/jersey2-java8-localdatetime - samples/client/petstore/java/jersey2-java8-localdatetime