-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- develop
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- name: "Set up JDK 17"
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: "Cache Maven Repos"
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Qodana Scan
uses: JetBrains/qodana-action@v2024.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
- name: "Print maven version"
run: mvn -version
- name: Build with Maven
run: mvn clean test
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./*/target/site/jacoco/jacoco.xml