-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.43 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Maven CI
on:
workflow_dispatch: { }
push: { }
pull_request: { }
permissions:
contents: read
jobs:
build:
if: github.ref_name == 'main' || 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: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: semeru
cache: 'maven'
- name: Build application with Maven
shell: bash
run: >
./mvnw
--show-version
--errors
--batch-mode
--no-transfer-progress
verify
-Pdocs,dockerize
-DtrimStackTrace=false
-Dspotless.skip=true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Create checkpoint
shell: bash
run: >
docker run
--name social-metricbot-checkpoint
--privileged
--env WLP_CHECKPOINT=beforeAppStart
io.github.bmarwell.social.metricbot/social-metricbot-app-ol-docker:latest
- name: Commit checkpoint
shell: bash
run: >
docker commit social-metricbot-checkpoint social-metricbot-instanton;
docker rm social-metricbot-checkpoint