build(deps-dev): bump @commitlint/cli from 17.7.1 to 17.7.2 (#968) #1625
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gradle: ['7.6.2', '8.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
if: matrix.gradle == '7.6.2' | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build -Dsnom.test.functional.gradle=${{ matrix.gradle }} --scan | |
- run: | | |
echo Verifying the java version used in class files... | |
cd build/classes/groovy/main | |
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 52' | |
- name: Run Semantic Release | |
run: | | |
echo "gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}" > ~/.gradle/gradle.properties | |
echo "gradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}" >> ~/.gradle/gradle.properties | |
rm -rf build/libs/*.jar | |
npm ci | |
npx semantic-release | |
if: matrix.gradle == '7.6.2' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
- name: Run SonarQube Scanner | |
run: | | |
if [ "$SONAR_LOGIN" != "" ]; then | |
./gradlew sonarqube -Dsonar.login=$SONAR_LOGIN --no-daemon | |
fi | |
if: matrix.gradle == '7.6.2' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports (Gradle ${{ matrix.gradle }}) | |
path: build/reports |