Skip to content

chore(deps): update dependency org.sonarsource.scanner.gradle:sonarqu… #835

chore(deps): update dependency org.sonarsource.scanner.gradle:sonarqu…

chore(deps): update dependency org.sonarsource.scanner.gradle:sonarqu… #835

Workflow file for this run

name: Java CI
on:
push:
branches:
- master
pull_request: {}
workflow_dispatch: {}
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
gradle: [ '8.14.5' ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: webiny/action-conventional-commits@7f91b1595ca1951cdb671ddc9f07a49081ec5b69 # v1.4.2
if: github.event_name == 'pull_request'
- name: Set up JDK
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version-file: .java-version
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.nvmrc'
cache: npm
if: matrix.gradle == '8.14.5' && matrix.os == 'ubuntu-latest'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Build the project
run: ./gradlew build -P"snom.test.functional.gradle=${{ matrix.gradle }}" --scan
- name: Verify class files
if: matrix.os == 'ubuntu-latest'
run: |
echo "$PATH"
echo "Verifying the java version used in class files..."
cd build/classes/kotlin/main
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 55'
- 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 == '8.14.5' && matrix.os == 'ubuntu-latest' && github.repository == 'spotbugs/spotbugs-gradle-plugin'
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 sonar -Dsonar.token=$SONAR_LOGIN --no-daemon
fi
if: matrix.gradle == '8.14.5' && matrix.os == 'ubuntu-latest' && github.repository == 'spotbugs/spotbugs-gradle-plugin'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: reports (Gradle ${{ matrix.gradle }}, ${{ matrix.os }})
path: build/reports