Skip to content

Commit

Permalink
Merge pull request #981 from simple-robot/fix-qodana-ci
Browse files Browse the repository at this point in the history
edit ci config
  • Loading branch information
ForteScarlet authored Dec 4, 2024
2 parents c0063f4 + c2f9f14 commit 46e3be5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-v4-kdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.5
GRADLE_VERSION: 8.6
IS_CI: true
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-v4-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.5
GRADLE_VERSION: 8.6
NODE_VERSION: 22
IS_CI: true
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-v4-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on: # push
env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.5
GRADLE_VERSION: 8.6
NODE_VERSION: 22
IS_CI: true
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
branches:
- v4-dev

env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.6

jobs:
qodana:
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
Expand All @@ -15,10 +20,24 @@ jobs:
pull-requests: write
checks: write
steps:
- uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: 'gradle'

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
# ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis

- name: 'Setup Gradle'
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ env.GRADLE_VERSION }}

- run: gradle assemble -i -s -x test --warning-mode all --build-cache

- name: 'Qodana Scan'
# https://www.jetbrains.com/help/qodana/github.html#Usage
uses: JetBrains/qodana-action@v2024.2
Expand All @@ -30,4 +49,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.FORLIY_ACCESS_TOKEN }}



2 changes: 1 addition & 1 deletion .github/workflows/test-v4-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
JAVA_VERSION: 21
JAVA_DISTRIBUTION: zulu
GRADLE_VERSION: 8.5
GRADLE_VERSION: 8.6
NODE_VERSION: 22
IS_CI: true
GRADLE_OPTS: "-Dfile.encoding=UTF-8"
Expand Down
5 changes: 3 additions & 2 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ projectJDK: azul-21 #(Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-jvm-community:latest
# Specify Qodana linter for analysis (Applied in CI/CD pipeline)
# https://www.jetbrains.com/help/qodana/linters.html
linter: jetbrains/qodana-jvm-community:2024.2

0 comments on commit 46e3be5

Please sign in to comment.