-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Qodana | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- dev | ||
- 'releases/*' | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
Check notice Code scanning / Checkov (reported by Codacy) Ensure top-level permissions are not set to write-all Note
Ensure top-level permissions are not set to write-all
|
||
contents: write | ||
pull-requests: write | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
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: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Run tests | ||
run: mvn -B test -DskipTests=false | ||
|
||
- name: Archive coverage data | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: jest-coverage-data | ||
path: .qodana/code-coverage | ||
|
||
- name: 'Qodana Scan' | ||
uses: JetBrains/[email protected] | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | ||
with: | ||
# Enable the pull-request mode | ||
pr-mode: true |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,9 @@ target/ | |
# flattened pom | ||
.flattened-pom.xml | ||
|
||
### Qodana | ||
.qodana | ||
|
||
### logs #### | ||
/logs/ | ||
*.log | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://www.jetbrains.com/help/qodana/qodana-yaml.html | ||
|
||
version: 1.0 | ||
|
||
# bootstrap: apt install <package_name> | ||
|
||
|
||
# Qodana compares maven jdk values and selects the latest version | ||
# projectJDK: corretto-17 | ||
|
||
# Starting from version 2022.3, if using the qodana.recommended and qodana.starter profiles, Qodana reads .gitignore | ||
# files of your project and defines the files and folders to be ignored during inspections. | ||
exclude: | ||
- name: All | ||
paths: | ||
- .mvn | ||
|
||
include: | ||
- name: CheckDependencyLicenses | ||
|
||
fixesStrategy: cleanup/apply |