chore(deps): update github/codeql-action action to v4.37.3 (#1766) #791
This file contains hidden or 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: {} | |
| 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@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.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@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.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 |