Skip to content

build(deps): bump org.jetbrains:annotations from 24.1.0 to 25.0.0 #194

build(deps): bump org.jetbrains:annotations from 24.1.0 to 25.0.0

build(deps): bump org.jetbrains:annotations from 24.1.0 to 25.0.0 #194

Workflow file for this run

name: Test V4 Branch
on:
pull_request:
branches:
- 'v4-dev'
- 'v4*-dev'
env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.5
NODE_VERSION: 22
IS_CI: true
GRADLE_OPTS: "-Dfile.encoding=UTF-8"
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
build-v4-test:
name: Build and test
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: 'gradle'
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run V4 All Tests
uses: gradle/gradle-build-action@v3
with:
gradle-version: ${{ env.GRADLE_VERSION }}
arguments: |
assemble
build
allTests
-s
--warning-mode all
- name: Upload test reports
uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports-${{ matrix.os }}
path: '**/build/reports/tests'
retention-days: 7
detekt-check:
name: Detekt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: 'gradle'
- name: Run Detekt
uses: gradle/gradle-build-action@v3
with:
gradle-version: ${{ env.GRADLE_VERSION }}
arguments: |
detekt
-s
--warning-mode all
- name: Upload detekt reports
uses: actions/upload-artifact@v4
if: always()
with:
name: detekt-reports
path: 'build/reports/detekt'
retention-days: 7
# https://detekt.dev/docs/introduction/reporting/#integration-with-github-code-scanning
# Make sure we always run this upload task,
# because the previous step may fail if there are findings.
- name: Upload SARIF to GitHub using the upload-sarif action
uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: 'build/reports/detekt/detekt.sarif'