-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.56 KB
/
maven-ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Maven CI
on:
workflow_dispatch: { }
push: { }
pull_request: { }
jobs:
build:
if: github.event_name != 'push' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- name: Skip Duplicate Actions
uses: fkirc/[email protected]
with:
paths_ignore: '[ "**/*.md", "**/*.adoc" ]'
cancel_others: true
concurrent_skipping: outdated_runs
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Initialize
shell: bash
run: |
./mvnw \
--show-version \
--errors \
--batch-mode \
--no-transfer-progress \
org.mvnsearch:toolchains-maven-plugin:toolchain \
-pl . \
-DtrimStackTrace=false
- name: Build application with Maven
shell: bash
run: |
./mvnw \
--show-version \
--errors \
--batch-mode \
--no-transfer-progress \
verify jacoco:merge@jacoco-merge-cli site \
-Pdocs \
-DtrimStackTrace=false
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
fail_ci_if_error: true # optional (default = false)