|
| 1 | +name: Samples Java Spring |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'samples/server/petstore/spring*/**' |
| 7 | + - 'samples/openapi3/server/petstore/spring*/**' |
| 8 | + pull_request: |
| 9 | + paths: |
| 10 | + - 'samples/server/petstore/spring*/**' |
| 11 | + - 'samples/openapi3/server/petstore/spring*/**' |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + name: Build Java Spring |
| 15 | + runs-on: ubuntu-latest |
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + sample: |
| 20 | + # clients |
| 21 | + - samples/client/petstore/spring-cloud |
| 22 | + - samples/openapi3/client/petstore/spring-cloud |
| 23 | + - samples/client/petstore/spring-cloud-date-time |
| 24 | + - samples/openapi3/client/petstore/spring-cloud-date-time |
| 25 | + - samples/client/petstore/spring-stubs |
| 26 | + - samples/openapi3/client/petstore/spring-stubs |
| 27 | + # servers |
| 28 | + - samples/server/petstore/spring-mvc |
| 29 | + - samples/server/petstore/spring-mvc-default-value |
| 30 | + - samples/server/petstore/spring-mvc-j8-async |
| 31 | + - samples/server/petstore/spring-mvc-j8-localdatetime |
| 32 | + - samples/server/petstore/springboot |
| 33 | + - samples/openapi3/server/petstore/springboot |
| 34 | + - samples/server/petstore/springboot-beanvalidation |
| 35 | + - samples/server/petstore/springboot-useoptional |
| 36 | + - samples/openapi3/server/petstore/springboot-useoptional |
| 37 | + - samples/server/petstore/springboot-reactive |
| 38 | + - samples/openapi3/server/petstore/springboot-reactive |
| 39 | + - samples/server/petstore/springboot-implicitHeaders |
| 40 | + - samples/openapi3/server/petstore/springboot-implicitHeaders |
| 41 | + - samples/server/petstore/springboot-delegate |
| 42 | + - samples/openapi3/server/petstore/springboot-delegate |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + - uses: actions/setup-java@v2 |
| 46 | + with: |
| 47 | + distribution: 'temurin' |
| 48 | + java-version: 8 |
| 49 | + - name: Cache maven dependencies |
| 50 | + uses: actions/cache@v2.1.7 |
| 51 | + env: |
| 52 | + cache-name: maven-repository |
| 53 | + with: |
| 54 | + path: | |
| 55 | + ~/.m2 |
| 56 | + key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} |
| 57 | + - name: Build |
| 58 | + working-directory: ${{ matrix.sample }} |
| 59 | + run: mvn clean package |
0 commit comments