Skip to content

Bump @stoplight/spectral-cli from 6.6.0 to 6.9.0 in /schemas #1142

Bump @stoplight/spectral-cli from 6.6.0 to 6.9.0 in /schemas

Bump @stoplight/spectral-cli from 6.6.0 to 6.9.0 in /schemas #1142

name: Test `examples/java` Pull Request
on:
pull_request:
paths:
- "examples/java/**"
- ".github/workflows/examples-java-pr.yml"
- "schemas/**"
permissions:
contents: read
jobs:
test:
defaults:
run:
working-directory: examples/java
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
with:
java-version: '17'
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache SonarCloud packages
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build
run: ./gradlew clean build
- name: Perform Static Analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonarqube
- name: Upload Artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: examples-java-libs
path: '**/build/libs/*'
retention-days: 5
- name: Upload Test reports
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: examples-java-reports
path: '**/build/reports/*'
retention-days: 5