-
Notifications
You must be signed in to change notification settings - Fork 111
26 lines (26 loc) · 836 Bytes
/
build.yml
File metadata and controls
26 lines (26 loc) · 836 Bytes
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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Build and test
# -B runs in non-interactive (batch) mode
# -V displays version information
# jacoco:report generates test coverage report
# -Dmaven.javadoc.failOnWarnings=true enforces Javadoc quality
# -Dgpg.skip=true skips GPG signing, which is only done on release
run: mvn -B -V install jacoco:report -Dmaven.javadoc.failOnWarnings=true -Dgpg.skip=true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4