-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (47 loc) · 1.72 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: AST TeamCity plugin CI
on: [pull_request]
jobs:
integration-tests:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
lfs: true # Ensure LFS files are checked out
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install xmllint
run: sudo apt-get install -y libxml2-utils
- name: Verify with Maven
run: mvn -B verify
- name: Run SpotBugs Analysis
if: ${{ github.actor != 'dependabot[bot]' }}
uses: jwgmeligmeyling/spotbugs-github-action@b8e2c3523acb34c87f14e18cbcd2d87db8c8584e #master (currently 1.2)
with:
path: '**/spotbugsXml.xml'
- name: Package with Maven
run: mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage-report/target/site/jacoco-aggregate/index.html
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 #v2.11.0
with:
jacoco-csv-file: coverage-report/target/site/jacoco-aggregate/jacoco.csv