-
-
Notifications
You must be signed in to change notification settings - Fork 82
51 lines (47 loc) · 1.28 KB
/
build.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
name: Build Repository
on:
push:
branches: ["v*"]
pull_request:
branches: ["**"]
jobs:
development-build:
name: Development build with JDK 9
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 9
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- run: mvn --batch-mode --update-snapshots verify
- uses: skjolber/maven-cache-github-action@v1
with:
step: save
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
release-build:
name: Release build with JDK 9
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 9
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- run: mvn -P release --batch-mode --update-snapshots verify
- uses: skjolber/maven-cache-github-action@v1
with:
step: save
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}