-
-
Notifications
You must be signed in to change notification settings - Fork 82
45 lines (41 loc) · 1.1 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
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@v3
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@v3