-
-
Notifications
You must be signed in to change notification settings - Fork 558
38 lines (30 loc) · 835 Bytes
/
maven.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
name: Java CI with Maven
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up latest stable JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 23
- name: Cache maven deps
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and test with Maven using xvfb
uses: GabrielBB/xvfb-action@v1
with:
run: |
mvn test -B -Dgpg.skip=true -Dmaven.javadoc.skip=true -Dpmd.skip=true
- name: Upload to CodeCov
run: bash <(curl -s https://codecov.io/bash)