forked from collarmc/collar
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.19 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
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 16
- name: Set up MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
image-version: latest
port: 27017
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: tests/target/site/jacoco-aggregate/
- name: Upload server.jar
uses: actions/upload-artifact@v2
with:
name: server.jar
path: server/target/server.jar
- name: Upload client.jar
uses: actions/upload-artifact@v2
with:
name: client-snapshot.jar
path: client/target/client-0.1.0-SNAPSHOT.jar
- name: Upload client-full.jar
uses: actions/upload-artifact@v2
with:
name: client-snapshot-full.jar
path: client/target/client-0.1.0-SNAPSHOT-full.jar