forked from DataDog/vulnerable-java-application
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 951 Bytes
/
local-analysis.yaml
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
name: "Codacy Local Analysis"
on:
push:
branches:
- '**'
jobs:
analyze:
name: analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9
- name: build
run: gradle build
- name: generate coverage report
run: gradle jacocoTestReport
- name: uploade coverage data
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: reports/coverage.xml
- name: generate and upload local analysis data
uses: codacy/[email protected]
with:
tool: spotbugs
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
upload: true