Feat(VIST-CPC-1361) See Received emails #2418
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
name: Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: 'gradle' | |
- name: Run Build | |
run: ./gradlew build | |
- name: Create coverage-data directory and copy contents | |
run: | | |
mkdir -p .qodana/code-coverage | |
cp -R */build/reports/* .qodana/code-coverage/ | |
- name: Archive coverage data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gradle-coverage-data.zip | |
path: .qodana/code-coverage | |
# - name: 'Qodana Scan' | |
# uses: JetBrains/[email protected] | |
# env: | |
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
# with: | |
# args: "--linter,jetbrains/qodana-jvm:latest" | |
# #todo Will setup the code-coverage percent to show on the Qodana reports in the future | |
## args: "-i,.qodana/code-coverage,--linter,jetbrains/qodana-jvm:latest" | |
# pr-mode: false |