-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.36 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
name: Build Project
on: [push]
jobs:
build-ubuntu:
name: Build Project (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Postgis 11
uses: huaxk/postgis-action@v1
with:
postgresql version: '11'
postgresql password: ${{ secrets.POSTGRESQL_PASSWORD }}
postgresql user: 'baremaps'
postgresql db: 'baremaps'
- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -P integration -B package --file pom.xml
- name: Upload code coverage
run: bash <(curl -s https://codecov.io/bash)
build-macos:
name: Build Project (MacOS)
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
build-windows:
name: Build Project (Windows)
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml